class Fixnum
Public Instance Methods
ago()
click to toggle source
# File lib/time_sugar.rb, line 17 def ago Time.now - self end
from_now()
click to toggle source
# File lib/time_sugar.rb, line 21 def from_now Time.now + self end