Class: SimpleCalendar::MonthCalendar

Inherits:
Calendar
  • Object
show all
Defined in:
lib/simple_calendar/month_calendar.rb

Constant Summary

Constants inherited from Calendar

Calendar::PARAM_KEY_BLACKLIST

Instance Attribute Summary

Attributes inherited from Calendar

#options, #view_context

Instance Method Summary collapse

Methods inherited from Calendar

#initialize, #render, #td_classes_for, #tr_classes_for, #url_for_next_view, #url_for_previous_view

Constructor Details

This class inherits a constructor from SimpleCalendar::Calendar

Instance Method Details

#date_rangeObject



3
4
5
# File 'lib/simple_calendar/month_calendar.rb', line 3

def date_range
  (start_date.beginning_of_month.beginning_of_week..start_date.end_of_month.end_of_week).to_a
end