instance method
yesterday?
Ruby on Rails 7.0.10
Since v6.1.7.10Signature
yesterday?()
Returns true if the date/time is yesterday.
Source
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 41
def yesterday?
to_date == ::Date.current.yesterday
end
Defined in activesupport/lib/active_support/core_ext/date_and_time/calculations.rb line 41
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateAndTime::Calculations