Class: WorkflowTemplate::Definer::HasActions::Position::Before
- Inherits:
-
Position
- Object
- Position
- WorkflowTemplate::Definer::HasActions::Position::Before
- Defined in:
- lib/workflow_template/definer/has_actions/position.rb
Instance Method Summary collapse
- #apply_with_reference(before, action, reference, after) ⇒ Object
- #apply_without_reference(actions, action) ⇒ Object
Instance Method Details
#apply_with_reference(before, action, reference, after) ⇒ Object
60 61 62 |
# File 'lib/workflow_template/definer/has_actions/position.rb', line 60 def apply_with_reference(before, action, reference, after) [*before, action, reference, *after] end |
#apply_without_reference(actions, action) ⇒ Object
56 57 58 |
# File 'lib/workflow_template/definer/has_actions/position.rb', line 56 def apply_without_reference(actions, action) [action, *actions] end |