Class: Calrom::ThreeMonths
- Defined in:
- lib/calrom/date_range.rb
Instance Method Summary collapse
-
#initialize(year, month) ⇒ ThreeMonths
constructor
A new instance of ThreeMonths.
Methods inherited from DateRange
#each_month, #spans_multiple_months?
Constructor Details
#initialize(year, month) ⇒ ThreeMonths
Returns a new instance of ThreeMonths.
49 50 51 |
# File 'lib/calrom/date_range.rb', line 49 def initialize(year, month) super first_day_of_last_month(year, month), last_day_of_next_month(year, month) end |