Class: Core::Computed::Value
- Inherits:
-
Object
- Object
- Core::Computed::Value
- Defined in:
- lib/core/computed/value.rb
Overview
- public
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
[public].
-
#dependencies ⇒ Object
readonly
[public].
Instance Method Summary collapse
-
#initialize(&block) ⇒ Value
constructor
A new instance of Value.
Constructor Details
#initialize(&block) ⇒ Value
Returns a new instance of Value.
8 9 10 11 |
# File 'lib/core/computed/value.rb', line 8 def initialize(&block) @block = block @dependencies = build_dependencies(block) end |
Instance Attribute Details
#block ⇒ Object (readonly)
- public
15 16 17 |
# File 'lib/core/computed/value.rb', line 15 def block @block end |
#dependencies ⇒ Object (readonly)
- public
19 20 21 |
# File 'lib/core/computed/value.rb', line 19 def dependencies @dependencies end |