Exception: Infusible::Errors::DuplicateDependency

Inherits:
StandardError
  • Object
show all
Defined in:
lib/infusible/errors/duplicate_dependency.rb

Overview

Prevents duplicate dependencies from being injected.

Instance Method Summary collapse

Constructor Details

#initialize(key:, identifier:) ⇒ DuplicateDependency

Returns a new instance of DuplicateDependency.



7
8
9
# File 'lib/infusible/errors/duplicate_dependency.rb', line 7

def initialize key:, identifier:
  super "Remove #{identifier.inspect} since it's a duplicate of #{key.inspect}."
end