Class: ReeDate::BeginningOfMonth

Inherits:
Object
  • Object
show all
Includes:
Ree::FnDSL
Defined in:
lib/ree_lib/packages/ree_date/package/ree_date/functions/beginning_of_month.rb

Instance Method Summary collapse

Instance Method Details

#call(date = nil) ⇒ Object



18
19
20
# File 'lib/ree_lib/packages/ree_date/package/ree_date/functions/beginning_of_month.rb', line 18

def call(date = nil)
  change(date || today, day: 1)
end