Class: WorkflowTemplate::Definer::HasActions::Position::After

Inherits:
Position
  • Object
show all
Defined in:
lib/workflow_template/definer/has_actions/position.rb

Instance Method Summary collapse

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