class Rufus::CronLine

def matches? (time)


Returns true if the given time matches this cron line.
def matches? (time)
  time = Time.at(time) unless time.kind_of?(Time)
  return false unless sub_match?(time.sec, @seconds)
  return false unless sub_match?(time.min, @minutes)
  return false unless sub_match?(time.hour, @hours)
  return false unless sub_match?(time.day, @days)
  return false unless sub_match?(time.month, @months)
  return false unless sub_match?(time.wday, @weekdays)
  true
end