Class: HTMLCalendar::Month
- Inherits:
-
Object
- Object
- HTMLCalendar::Month
- Defined in:
- lib/html_calendar/month.rb
Instance Method Summary collapse
- #date_range ⇒ Object
-
#initialize(date) ⇒ Month
constructor
A new instance of Month.
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_range ⇒ Object
8 9 10 |
# File 'lib/html_calendar/month.rb', line 8 def date_range at_beginning_of_month..at_end_of_month end |