Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- lib/time_freeze.rb
Class Method Summary collapse
Class Method Details
.today ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/time_freeze.rb', line 49 def today if TimeFreeze.frozen_time TimeFreeze.frozen_time.to_date else self.today_unfrozen end end |
.today_unfrozen ⇒ Object
48 |
# File 'lib/time_freeze.rb', line 48 alias :today_unfrozen :today |