Class: ReeDatetime::Tuesday

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

Instance Method Summary collapse

Instance Method Details

#call(date_time = nil) ⇒ Object



14
15
16
17
# File 'lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/tuesday.rb', line 14

def call(date_time = nil)
  date_time = date_time || now
  days_since(monday(date_time), 1)
end