Method: Calrom::Month#initialize
- Defined in:
- lib/calrom/date_range.rb
#initialize(year, month) ⇒ Month
Returns a new instance of Month.
67 68 69 70 71 72 |
# File 'lib/calrom/date_range.rb', line 67 def initialize(year, month) @year = year @month = month super Date.new(year, month, 1), Date.new(year, month, -1) end |