Exception: Sprockets::DoubleLinkError

Inherits:
Error
  • Object
show all
Defined in:
lib/sprockets/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent_filename:, logical_path:, last_filename:, filename:) ⇒ DoubleLinkError

Returns a new instance of DoubleLinkError.



21
22
23
24
25
26
27
28
# File 'lib/sprockets/base.rb', line 21

def initialize(parent_filename:, logical_path:, last_filename:, filename:)
  super <<~MSG
    Multiple files with the same output path cannot be linked (#{logical_path.inspect})
    In #{parent_filename.inspect} these files were linked:
      - #{last_filename}
      - #{filename}
  MSG
end