Class: Fixnum

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

Overview

end of Module#Timetastic

Instance Method Summary collapse

Instance Method Details

#ago(relative_to = nil) ⇒ Object



124
125
126
# File 'lib/timetastic.rb', line 124

def ago(relative_to = nil)
  relative_time(-1, relative_to)
end

#hence(relative_to = nil) ⇒ Object Also known as: ahead, from_now



128
129
130
# File 'lib/timetastic.rb', line 128

def hence(relative_to = nil)
  relative_time(1, relative_to)
end