Method: DateAndTime::Calculations#all_month
- Defined in:
- activesupport/lib/active_support/core_ext/date_and_time/calculations.rb
#all_month ⇒ Object
Returns a Range representing the whole month of the current date/time.
321 322 323 |
# File 'activesupport/lib/active_support/core_ext/date_and_time/calculations.rb', line 321 def all_month beginning_of_month..end_of_month end |