Class: WorkflowTemplate::Definer::HasActions::Position::After
- Inherits:
-
Position
- Object
- Position
- WorkflowTemplate::Definer::HasActions::Position::After
- 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
70 71 72 |
# File 'lib/workflow_template/definer/has_actions/position.rb', line 70 def apply_with_reference(before, action, reference, after) [*before, reference, action, *after] end |
#apply_without_reference(actions, action) ⇒ Object
66 67 68 |
# File 'lib/workflow_template/definer/has_actions/position.rb', line 66 def apply_without_reference(actions, action) [*actions, action] end |