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