class Rufus::Scheduler

def repeat(arg, callable=nil, opts={}, &block)

def repeat(arg, callable=nil, opts={}, &block)
  # TODO: eventually, spare one parse call
  case Scheduler.parse(arg)
    when CronLine then schedule_cron(arg, callable, opts, &block)
    else schedule_every(arg, callable, opts, &block)
  end
end