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