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



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

def all
  workflows
end

.find(workflow_name) ⇒ Object



64
65
66
# File 'lib/sequent/core/workflow.rb', line 64

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

.workflowsObject



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

def workflows
  Sequent::Workflow.descendants
end