Class: Date

Inherits:
Object
  • Object
show all
Defined in:
lib/time_freeze.rb

Class Method Summary collapse

Class Method Details

.todayObject



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_unfrozenObject



48
# File 'lib/time_freeze.rb', line 48

alias :today_unfrozen :today