class Date

Extend Date with methods to find the previous Date

Public Instance Methods

pred() click to toggle source

Decrement the Date by one day

@example

previous_day = date.pred

@return [Date]

@api public

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