Exception: DependencyRegistrationException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sinject.rb

Instance Method Summary collapse

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_sObject



229
230
231
# File 'lib/sinject.rb', line 229

def to_s
  "A Dependency has already been registered for the key: '#{key}'"
end