Class: Meta::LinkedAction

Inherits:
Object
  • Object
show all
Defined in:
lib/meta/application/linked_action.rb

Instance Method Summary collapse

Constructor Details

#initialize(current_proc, next_action) ⇒ LinkedAction

Returns a new instance of LinkedAction.



7
8
9
10
# File 'lib/meta/application/linked_action.rb', line 7

def initialize(current_proc, next_action)
  @current_proc = current_proc
  @next_action = next_action
end

Instance Method Details

#execute(execution) ⇒ Object



12
13
14
# File 'lib/meta/application/linked_action.rb', line 12

def execute(execution)
  execution.instance_exec(@next_action, &@current_proc)
end