Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/timetastic.rb
Overview
end of Module#Timetastic
Instance Method Summary collapse
- #ago(relative_to = nil) ⇒ Object
- #hence(relative_to = nil) ⇒ Object (also: #ahead, #from_now)
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 |