Method: Time#next_month
- Defined in:
- lib/active_support/core_ext/time/calculations.rb
#next_month(months = 1) ⇒ Object
Returns a new time the specified number of months in the future.
366 367 368 |
# File 'lib/active_support/core_ext/time/calculations.rb', line 366 def next_month(months = 1) advance(months: months) end |