class method
self.===
Ruby on Rails 6.1.7.10
Since v3.0.20Signature
self.===(other)
Overriding case equality method so that it returns true for ActiveSupport::TimeWithZone instances
Parameters
-
otherreq
Source
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 18
def ===(other)
super || (self == Time && other.is_a?(ActiveSupport::TimeWithZone))
end
Defined in activesupport/lib/active_support/core_ext/time/calculations.rb line 18
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Time