Class: Sequent::Core::Workflows
- Inherits:
-
Object
- Object
- Sequent::Core::Workflows
- Defined in:
- lib/sequent/core/workflow.rb
Overview
Utility class containing all subclasses of Workflow
Class Method Summary collapse
Class Method Details
.<<(workflow) ⇒ Object
64 65 66 |
# File 'lib/sequent/core/workflow.rb', line 64 def <<(workflow) workflows << workflow end |
.all ⇒ Object
60 61 62 |
# File 'lib/sequent/core/workflow.rb', line 60 def all workflows end |
.find(workflow_name) ⇒ Object
68 69 70 |
# File 'lib/sequent/core/workflow.rb', line 68 def find(workflow_name) workflows.find { |c| c.name == workflow_name } end |
.workflows ⇒ Object
56 57 58 |
# File 'lib/sequent/core/workflow.rb', line 56 def workflows @workflows ||= [] end |