Exception: Flows::Plugin::DependencyInjector::MissingDependencyError

Inherits:
Error
  • Object
show all
Defined in:
lib/flows/plugin/dependency_injector/errors.rb

Overview

Raised when you're missed some dependency.

Since:

  • 0.4.0

Instance Method Summary collapse

Constructor Details

#initialize(klass, names) ⇒ MissingDependencyError

Returns a new instance of MissingDependencyError.

Since:

  • 0.4.0



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

#messageObject

Since:

  • 0.4.0



14
15
16
# File 'lib/flows/plugin/dependency_injector/errors.rb', line 14

def message
  "Missing dependency(ies) for #{@klass}: #{@names.map(&:to_s).join(', ')}"
end