Class: OpenLoam::Workflow::Definition
- Inherits:
-
Struct
- Object
- Struct
- OpenLoam::Workflow::Definition
- Defined in:
- lib/open_loam/workflow.rb
Overview
The whole machine, frozen at class-definition time.
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#initial ⇒ Object
Returns the value of attribute initial.
-
#states ⇒ Object
Returns the value of attribute states.
-
#transitions ⇒ Object
Returns the value of attribute transitions.
Instance Method Summary collapse
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column
39 40 41 |
# File 'lib/open_loam/workflow.rb', line 39 def column @column end |
#initial ⇒ Object
Returns the value of attribute initial
39 40 41 |
# File 'lib/open_loam/workflow.rb', line 39 def initial @initial end |
#states ⇒ Object
Returns the value of attribute states
39 40 41 |
# File 'lib/open_loam/workflow.rb', line 39 def states @states end |
#transitions ⇒ Object
Returns the value of attribute transitions
39 40 41 |
# File 'lib/open_loam/workflow.rb', line 39 def transitions @transitions end |
Instance Method Details
#transitions_from(state) ⇒ Object
40 41 42 |
# File 'lib/open_loam/workflow.rb', line 40 def transitions_from(state) transitions.each_value.select { |transition| transition.from.include?(state.to_s) } end |