Exception: DependencyRegistrationException
- Inherits:
-
StandardError
- Object
- StandardError
- DependencyRegistrationException
- Defined in:
- lib/sinject.rb
Instance Method Summary collapse
-
#initialize(key) ⇒ DependencyRegistrationException
constructor
A new instance of DependencyRegistrationException.
- #to_s ⇒ Object
Constructor Details
#initialize(key) ⇒ DependencyRegistrationException
Returns a new instance of DependencyRegistrationException.
225 226 227 |
# File 'lib/sinject.rb', line 225 def initialize(key) @key = key end |
Instance Method Details
#to_s ⇒ Object
229 230 231 |
# File 'lib/sinject.rb', line 229 def to_s "A Dependency has already been registered for the key: '#{key}'" end |