Class: ReeDatetime::AllHour
- Inherits:
-
Object
- Object
- ReeDatetime::AllHour
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/all_hour.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/all_hour.rb', line 14 def call(date_time = nil) date_time = date_time || now beginning_of_hour(date_time)..end_of_hour(date_time) end |