instance method
yesterday?
Ruby on Rails 8.1.2
Since v6.1.7.10Signature
yesterday?()
Returns true if the current object’s time falls within the previous day (yesterday).
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 279
def yesterday?
time.yesterday?
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 279
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone