Exception: Lotus::Assets::MissingAsset

Inherits:
Error
  • Object
show all
Defined in:
lib/lotus/assets/compiler.rb

Overview

Since:

  • 0.1.0

Instance Method Summary collapse

Constructor Details

#initialize(name, sources) ⇒ MissingAsset

Returns a new instance of MissingAsset.

Since:

  • 0.1.0


4
5
6
7
# File 'lib/lotus/assets/compiler.rb', line 4

def initialize(name, sources)
  sources = sources.map(&:to_s).join(', ')
  super("Missing asset: `#{ name }' (sources: #{ sources })")
end