Exception: Flows::Plugin::DependencyInjector::MissingDependencyError
Overview
Raised when you're missed some dependency.
Instance Method Summary collapse
-
#initialize(klass, names) ⇒ MissingDependencyError
constructor
A new instance of MissingDependencyError.
- #message ⇒ Object
Constructor Details
#initialize(klass, names) ⇒ MissingDependencyError
Returns a new instance of MissingDependencyError.
9 10 11 12 |
# File 'lib/flows/plugin/dependency_injector/errors.rb', line 9 def initialize(klass, names) @klass = klass @names = names end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/flows/plugin/dependency_injector/errors.rb', line 14 def "Missing dependency(ies) for #{@klass}: #{@names.map(&:to_s).join(', ')}" end |