class Rufus::Scheduler

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

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