Class: Sequent::Core::Workflows

Inherits:
Object
  • Object
show all
Defined in:
lib/sequent/core/workflow.rb

Overview

Utility class containing all subclasses of Workflow.

Class Method Summary collapse

Class Method Details

.allObject



56
57
58
# File 'lib/sequent/core/workflow.rb', line 56

def all
  workflows
end

.find(workflow_name) ⇒ Object



60
61
62
# File 'lib/sequent/core/workflow.rb', line 60

def find(workflow_name)
  workflows.find { |c| c.name == workflow_name }
end

.workflowsObject



52
53
54
# File 'lib/sequent/core/workflow.rb', line 52

def workflows
  Sequent::Workflow.descendants
end