class Mhc::DateEnumerator::YearlyByMonthday
Enumerate yealy dates by month-day like: Apr 22
Public Class Methods
new(start_date:, end_date:, interval: 1, month:, mday:)
click to toggle source
Calls superclass method
Mhc::DateEnumerator::Base::new
# File lib/mhc/date_enumerator.rb, line 153 def initialize(start_date:, end_date:, interval: 1, month:, mday:) super(start_date: start_date, end_date: end_date, interval: interval) @month, @mday = month, mday end
Private Instance Methods
frame_manager()
click to toggle source
# File lib/mhc/date_enumerator.rb, line 160 def frame_manager DateFrame::Yearly end
occurrence_in_frame(date)
click to toggle source
# File lib/mhc/date_enumerator.rb, line 164 def occurrence_in_frame(date) Mhc::PropertyValue::Date.new(date.year, @month, @mday) rescue nil end