instance method
yesterday?
Ruby on Rails 8.0.4
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 263
def yesterday?
time.yesterday?
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 263
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone