instance method ===

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

===(other)

Overriding case equality method so that it returns true for ActiveSupport::TimeWithZone instances

Parameters

other req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close