class Date

def yesterday

Returns a new Date representing the date 1 day ago (i.e. yesterday's date).
def yesterday
  ::Date.current.yesterday
end