Class: ReeDatetime::BeginningOfWeek

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

Instance Method Summary collapse

Instance Method Details

#call(date_time = nil, week_start) ⇒ Object



23
24
25
# File 'lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/beginning_of_week.rb', line 23

def call(date_time = nil, week_start)
  beginning_of_day(beginning_of_week((date_time || now), week_start)) 
end