Class: ReeDate::EndOfYear
- Inherits:
-
Object
- Object
- ReeDate::EndOfYear
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_date/package/ree_date/functions/end_of_year.rb
Instance Method Summary collapse
Instance Method Details
#call(date = nil) ⇒ Object
14 15 16 17 |
# File 'lib/ree_lib/packages/ree_date/package/ree_date/functions/end_of_year.rb', line 14 def call(date = nil) date = date || today end_of_month(change(date, month: 12, day: 1)) end |