Class: Murk::Model::ReferenceStackParameter

Inherits:
Object
  • Object
show all
Defined in:
lib/murk/model/stack_parameter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject (readonly)

Returns the value of attribute block.



26
27
28
# File 'lib/murk/model/stack_parameter.rb', line 26

def block
  @block
end

#keyObject (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