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
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 |