Class: SmartIoC::BeanDependency
- Inherits:
-
Object
- Object
- SmartIoC::BeanDependency
- Defined in:
- lib/smart_ioc/bean_dependency.rb
Instance Attribute Summary collapse
-
#bean ⇒ Object
readonly
Returns the value of attribute bean.
-
#bean_definition ⇒ Object
Returns the value of attribute bean_definition.
-
#package ⇒ Object
readonly
Returns the value of attribute package.
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
Instance Method Summary collapse
- #==(dependency) ⇒ Object
-
#initialize(bean:, ref:, package:) ⇒ BeanDependency
constructor
A new instance of BeanDependency.
Constructor Details
#initialize(bean:, ref:, package:) ⇒ BeanDependency
Returns a new instance of BeanDependency.
5 6 7 8 9 |
# File 'lib/smart_ioc/bean_dependency.rb', line 5 def initialize(bean:, ref:, package:) @bean = bean @ref = ref @package = package end |
Instance Attribute Details
#bean ⇒ Object (readonly)
Returns the value of attribute bean.
2 3 4 |
# File 'lib/smart_ioc/bean_dependency.rb', line 2 def bean @bean end |
#bean_definition ⇒ Object
Returns the value of attribute bean_definition.
3 4 5 |
# File 'lib/smart_ioc/bean_dependency.rb', line 3 def bean_definition @bean_definition end |
#package ⇒ Object (readonly)
Returns the value of attribute package.
2 3 4 |
# File 'lib/smart_ioc/bean_dependency.rb', line 2 def package @package end |
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
2 3 4 |
# File 'lib/smart_ioc/bean_dependency.rb', line 2 def ref @ref end |
Instance Method Details
#==(dependency) ⇒ Object
15 16 17 |
# File 'lib/smart_ioc/bean_dependency.rb', line 15 def ==(dependency) dependency.bean == @bean && dependency.package == @package end |