class Enumdate::DateFrame::Yearly

Yearly date frame

Private Instance Methods

beginning_of_frame(date) click to toggle source
# File lib/enumdate/date_frame.rb, line 133
def beginning_of_frame(date)
  beginning_of_year(date)
end
frames_between(date1, date2) click to toggle source
# File lib/enumdate/date_frame.rb, line 137
def frames_between(date1, date2)
  years_between(date1, date2)
end
next_frame_start(current_frame_date, cycles = 1) click to toggle source
# File lib/enumdate/date_frame.rb, line 129
def next_frame_start(current_frame_date, cycles = 1)
  current_frame_date >> (@interval * 12 * cycles)
end