Exception: Hanami::Assets::MissingAsset

Inherits:
Error
  • Object
show all
Defined in:
lib/hanami/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



6
7
8
9
# File 'lib/hanami/assets/compiler.rb', line 6

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