Module: WorkflowTemplate::Action
- Defined in:
- lib/workflow_template/action.rb,
lib/workflow_template/action/nested.rb,
lib/workflow_template/action/simple.rb,
lib/workflow_template/action/wrapper.rb,
lib/workflow_template/action/abstract.rb,
lib/workflow_template/action/validated.rb,
lib/workflow_template/action/description/wrapper.rb,
lib/workflow_template/action/description/validated.rb
Defined Under Namespace
Modules: Abstract, Description, Nested, Simple, Validated, Wrapper
Class Method Summary collapse
Class Method Details
.instance(name, type, **opts) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/workflow_template/action.rb', line 9 def self.instance(name, type, **opts) case type when :simple Simple::Unprepared.new(name, **opts) when :wrapper Wrapper::Unprepared.new(name, **opts) else raise Error, "Unimplemented action type: #{type}" end end |