Exception: Flows::Plugin::DependencyInjector::UnexpectedDependencyError
Overview
Raised when you're providing undeclared dependency.
Instance Method Summary collapse
-
#initialize(klass, names) ⇒ UnexpectedDependencyError
constructor
A new instance of UnexpectedDependencyError.
- #message ⇒ Object
Constructor Details
#initialize(klass, names) ⇒ UnexpectedDependencyError
Returns a new instance of UnexpectedDependencyError.
21 22 23 24 |
# File 'lib/flows/plugin/dependency_injector/errors.rb', line 21 def initialize(klass, names) @klass = klass @names = names end |
Instance Method Details
#message ⇒ Object
26 27 28 |
# File 'lib/flows/plugin/dependency_injector/errors.rb', line 26 def "Unexpected dependency(ies) for #{@klass}: #{@names.map(&:to_s).join(', ')}" end |