Class: WorkflowTemplate::Definer::HasActions::Position::Before

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



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