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



104
105
106
# File 'lib/timetastic.rb', line 104

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

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



108
109
110
# File 'lib/timetastic.rb', line 108

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