instance method
===
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
===(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 30
def ===(other)
other.is_a?(::Time)
end
Defined in activesupport/lib/active_support/core_ext/time/calculations.rb line 30
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::CoreExtensions::Time::Calculations::ClassMethods