Exception: Sinject::DependencyContractMissingMethodsException
- Inherits:
-
StandardError
- Object
- StandardError
- Sinject::DependencyContractMissingMethodsException
- Defined in:
- lib/sinject/exceptions.rb
Instance Method Summary collapse
-
#initialize(methods) ⇒ DependencyContractMissingMethodsException
constructor
A new instance of DependencyContractMissingMethodsException.
- #to_s ⇒ Object
Constructor Details
#initialize(methods) ⇒ DependencyContractMissingMethodsException
Returns a new instance of DependencyContractMissingMethodsException.
3 4 5 |
# File 'lib/sinject/exceptions.rb', line 3 def initialize(methods) @methods = methods end |
Instance Method Details
#to_s ⇒ Object
7 8 9 10 |
# File 'lib/sinject/exceptions.rb', line 7 def to_s method_names = @methods.join(', ') "The following methods have not been implemented: '#{method_names}'" end |