class Time

Extend Time with methods to find the previous Time

Public Instance Methods

pred() click to toggle source

Decrement the Time by one second

@example

previous_second = time.pred

@return [Time]

@api public

# File lib/axiom/core_ext/time.rb, line 15
def pred
  self - 1
end