Class: Time

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

Instance Method Summary collapse

Instance Method Details

#tomorrowObject

Convience methods



11
12
13
# File 'lib/can_has_support/time_core_ext.rb', line 11

def tomorrow
  1.day.since(self)
end

#yesterdayObject



15
16
17
# File 'lib/can_has_support/time_core_ext.rb', line 15

def yesterday
  1.day.until(self)
end