Class: ReeDatetime::AllWeek

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

Instance Method Summary collapse

Instance Method Details

#call(date_time = nil, start_day) ⇒ Object



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

def call(date_time = nil, start_day)
  date_time = date_time || now
  beginning_of_week(date_time, start_day)..end_of_week(date_time, start_day)
end