Exception: DependencyInitializeException
- Inherits:
-
StandardError
- Object
- StandardError
- DependencyInitializeException
- Defined in:
- lib/sinject.rb
Instance Method Summary collapse
-
#initialize(expected_type) ⇒ DependencyInitializeException
constructor
A new instance of DependencyInitializeException.
- #to_s ⇒ Object
Constructor Details
#initialize(expected_type) ⇒ DependencyInitializeException
213 214 215 |
# File 'lib/sinject.rb', line 213 def initialize(expected_type) @expected_type = expected_type end |
Instance Method Details
#to_s ⇒ Object
217 218 219 |
# File 'lib/sinject.rb', line 217 def to_s "The custom dependency initializer does not return an object of the expected type: '#{@expected_type}'" end |