Method: TimeCrisis::NamedMonths#month_range
- Defined in:
- lib/time_crisis/named_months.rb
#month_range(month = nil, year = nil) ⇒ Object
51 52 53 54 55 56 57 |
# File 'lib/time_crisis/named_months.rb', line 51 def month_range(month=nil, year=nil) month ||= current.month year ||= current.year base = TimeCrisis::Date.civil(year, month, 1) base.for(1, 'months') end |