Exception: Infusible::Errors::DuplicateDependency
- Inherits:
-
StandardError
- Object
- StandardError
- Infusible::Errors::DuplicateDependency
- Defined in:
- lib/infusible/errors/duplicate_dependency.rb
Overview
Prevents duplicate dependencies from being injected.
Instance Method Summary collapse
-
#initialize(key:, identifier:) ⇒ DuplicateDependency
constructor
A new instance of DuplicateDependency.
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 |