Class: ReeDate::DaysAgo
- Inherits:
-
Object
- Object
- ReeDate::DaysAgo
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_date/package/ree_date/functions/days_ago.rb
Instance Method Summary collapse
Instance Method Details
#call(date = nil, day_count) ⇒ Object
13 14 15 |
# File 'lib/ree_lib/packages/ree_date/package/ree_date/functions/days_ago.rb', line 13 def call(date = nil, day_count) advance(date || today, days: -day_count) end |