instance method
==
Ruby on Rails 4.2.9
Since v2.2.3Signature
==(other)
Returns true if other is also a Duration instance with the same value, or if other == value.
Parameters
-
otherreq
Source
# File activesupport/lib/active_support/duration.rb, line 47
def ==(other)
if Duration === other
other.value == value
else
other == value
end
end
Defined in activesupport/lib/active_support/duration.rb line 47
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Duration