Class: ReeDatetime::MonthsAgo
- Inherits:
-
Object
- Object
- ReeDatetime::MonthsAgo
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/months_ago.rb
Instance Method Summary collapse
Instance Method Details
#call(date_time = nil, month_count) ⇒ Object
13 14 15 |
# File 'lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/months_ago.rb', line 13 def call(date_time = nil, month_count) advance(date_time || now, months: -month_count) end |