class Fixnum
Constants
- SECONDS_IN_DAY
Public Instance Methods
ago()
click to toggle source
# File lib/helpers/fixnum.rb, line 8 def ago Time.now - self end
days()
click to toggle source
# File lib/helpers/fixnum.rb, line 4 def days self * SECONDS_IN_DAY end