Class: HTMLCalendar::Month

Inherits:
Object
  • Object
show all
Defined in:
lib/html_calendar/month.rb

Instance Method Summary collapse

Constructor Details

#initialize(date) ⇒ Month

Returns a new instance of Month.



4
5
6
# File 'lib/html_calendar/month.rb', line 4

def initialize(date)
  @date = date.at_beginning_of_month.to_date
end

Instance Method Details

#date_rangeObject



8
9
10
# File 'lib/html_calendar/month.rb', line 8

def date_range
  at_beginning_of_month..at_end_of_month
end