Class: Murk::Model::ReferenceStackParameter
- Inherits:
-
Object
- Object
- Murk::Model::ReferenceStackParameter
- Defined in:
- lib/murk/model/stack_parameter.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key, block) ⇒ ReferenceStackParameter
constructor
A new instance of ReferenceStackParameter.
- #resolve(stack_collection) ⇒ Object
Constructor Details
#initialize(key, block) ⇒ ReferenceStackParameter
28 29 30 31 |
# File 'lib/murk/model/stack_parameter.rb', line 28 def initialize(key, block) @key = key @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
26 27 28 |
# File 'lib/murk/model/stack_parameter.rb', line 26 def block @block end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
26 27 28 |
# File 'lib/murk/model/stack_parameter.rb', line 26 def key @key end |
Instance Method Details
#resolve(stack_collection) ⇒ Object
33 34 35 |
# File 'lib/murk/model/stack_parameter.rb', line 33 def resolve(stack_collection) stack_collection.instance_eval(&@block) end |