class Enumdate::DateFrame::Weekly
Weekly
date frame
Private Instance Methods
beginning_of_frame(date)
click to toggle source
# File lib/enumdate/date_frame.rb, line 167 def beginning_of_frame(date) beginning_of_week(date, @wkst) end
frames_between(date1, date2)
click to toggle source
# File lib/enumdate/date_frame.rb, line 171 def frames_between(date1, date2) (beginning_of_frame(date2) - beginning_of_frame(date1)) / 7 end
next_frame_start(current_frame_date, cycles = 1)
click to toggle source
# File lib/enumdate/date_frame.rb, line 163 def next_frame_start(current_frame_date, cycles = 1) current_frame_date + (@interval * 7 * cycles) end