Class: Meta::LinkedAction
- Inherits:
-
Object
- Object
- Meta::LinkedAction
- Defined in:
- lib/meta/application/linked_action.rb
Instance Method Summary collapse
- #execute(execution) ⇒ Object
-
#initialize(current_proc, next_action) ⇒ LinkedAction
constructor
A new instance of LinkedAction.
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 |