class Rufus::Scheduler
def schedule(arg, callable=nil, opts={}, &block)
def schedule(arg, callable=nil, opts={}, &block) opts[:_t] = Scheduler.parse(arg, opts) case opts[:_t] 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