Class: ReeDatetime::Monday
- Inherits:
-
Object
- Object
- ReeDatetime::Monday
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/monday.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/monday.rb', line 14 def call(date_time = nil) date_time = date_time || now change(beginning_of_week(date_time, :monday), hour: date_time.hour, min: date_time.min, sec: date_time.sec) end |