Class: ReeDate::AllWeek
- Inherits:
-
Object
- Object
- ReeDate::AllWeek
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_date/package/ree_date/functions/all_week.rb
Instance Method Summary collapse
Instance Method Details
#call(date = nil, start_day) ⇒ Object
17 18 19 20 |
# File 'lib/ree_lib/packages/ree_date/package/ree_date/functions/all_week.rb', line 17 def call(date = nil, start_day) date = date || today beginning_of_week(date, start_day)..end_of_week(date, start_day) end |