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