Method: Mobb::Base.compile_cron

Defined in:
lib/mobb/base.rb

.compile_cron(time, at) ⇒ Object



270
271
272
273
274
275
276
# File 'lib/mobb/base.rb', line 270

def compile_cron(time, at)
  if String === time
    Matcher.new(CronParser.new(time))
  else
    Matcher.new(CronParser.new(Whenever::Output::Cron.new(time, nil, at).time_in_cron_syntax))
  end
end