Exception: SmartIoC::Errors::AmbiguousBeanDefinition

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

Instance Method Summary collapse

Constructor Details

#initialize(bean_name, bean_definitions) ⇒ AmbiguousBeanDefinition

Returns a new instance of AmbiguousBeanDefinition.



19
20
21
22
23
24
25
# File 'lib/smart_ioc/errors.rb', line 19

def initialize(bean_name, bean_definitions)
  super(%Q(
    Unable to create bean :#{bean_name}.
    Several definitions were found.
    #{bean_definitions.map(&:inspect).join("\n\n")}
  ))
end