module Beowulf::OperationIds

Constants

IDS

Public Instance Methods

id(op) click to toggle source
# File lib/beowulf/operation_ids.rb, line 25
def id(op)
  if op.to_s =~ /_operation$/
    IDS.find_index op
  else
    IDS.find_index "#{op}_operation".to_sym
  end
end