class Montrose::Frequency::Yearly

Public Instance Methods

include?(time) click to toggle source
# File lib/montrose/frequency/yearly.rb, line 6
def include?(time)
  matches_interval? time.year - @starts.year
end
to_cron() click to toggle source
# File lib/montrose/frequency/yearly.rb, line 10
def to_cron
  raise "Intervals unsupported" unless @interval == 1

  "#{@starts.min} #{@starts.hour} #{@starts.day} #{@starts.month} *"
end