Class: ReeDatetime::AllMonth

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

Instance Method Summary collapse

Instance Method Details

#call(date_time = nil) ⇒ Object



17
18
19
20
# File 'lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/all_month.rb', line 17

def call(date_time = nil)
  date_time = date_time || now
  beginning_of_month(date_time)..end_of_month(date_time)
end