Class: WorkflowTemplate::Action::Nested::Unprepared

Inherits:
Object
  • Object
show all
Includes:
Abstract::Unprepared, WorkflowTemplate::Action::Nested
Defined in:
lib/workflow_template/action/nested.rb

Instance Attribute Summary

Attributes included from Abstract::Named

#name

Class Method Summary collapse

Methods included from WorkflowTemplate::Action::Nested

#describe, #duplicate, #initialize, #prepare

Methods included from Abstract::Named

#initialize

Methods included from Abstract

#describe, #prepare

Class Method Details

.instance(wrapper_action, workflow_module, &block) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/workflow_template/action/nested.rb', line 13

def self.instance(wrapper_action, workflow_module, &block)
  workflow = Module.new do
    extend workflow_module

    instance_eval(&block)
    send :store_wrapper_action, wrapper_action

    freeze
  end

  new(wrapper_action.name, workflow)
end