class Montrose::Frequency::Yearly
Public Instance Methods
Source
# File lib/montrose/frequency/yearly.rb, line 6 def include?(time) matches_interval? time.year - @starts.year end
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