Class: ReeDatetime::PrevWeek
- Inherits:
-
Object
- Object
- ReeDatetime::PrevWeek
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/prev_week.rb
Instance Method Summary collapse
Instance Method Details
#call(date_time = nil) ⇒ Object
13 14 15 |
# File 'lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/prev_week.rb', line 13 def call(date_time = nil) advance(date_time || now, weeks: -1) end |