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