Class: Ruice::Dependency
- Inherits:
-
Object
- Object
- Ruice::Dependency
- Defined in:
- lib/ruice/container.rb
Instance Attribute Summary collapse
-
#is_fresh ⇒ Object
readonly
Returns the value of attribute is_fresh.
-
#named ⇒ Object
readonly
Returns the value of attribute named.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target, is_fresh = false) ⇒ Dependency
constructor
A new instance of Dependency.
Constructor Details
#initialize(target, is_fresh = false) ⇒ Dependency
Returns a new instance of Dependency.
3 4 5 6 |
# File 'lib/ruice/container.rb', line 3 def initialize(target, is_fresh = false) @target = target @is_fresh = is_fresh end |
Instance Attribute Details
#is_fresh ⇒ Object (readonly)
Returns the value of attribute is_fresh.
8 9 10 |
# File 'lib/ruice/container.rb', line 8 def is_fresh @is_fresh end |
#named ⇒ Object (readonly)
Returns the value of attribute named.
8 9 10 |
# File 'lib/ruice/container.rb', line 8 def named @named end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
8 9 10 |
# File 'lib/ruice/container.rb', line 8 def target @target end |