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