class Guard::Interactor

def action_from_entry(entry)

Returns:
  • (Symbol) - a Guard action

Parameters:
  • entry (String) -- the possible action entry
def action_from_entry(entry)
  if STOP_ENTRIES.include?(entry)
    :stop
  elsif RELOAD_ENTRIES.include?(entry)
    :reload
  elsif PAUSE_ENTRIES.include?(entry)
    :pause
  elsif HELP_ENTRIES.include?(entry)
    :help
  elsif NOTIFICATION_ENTRIES.include?(entry)
    :notification
  end
end