instance method
eql?
Ruby on Rails 8.1.2
Since v4.1.16Signature
eql?(other)
Returns true if other is also a Duration instance, which has the same parts as this one.
Parameters
-
otherreq
Source
# File activesupport/lib/active_support/duration.rb, line 426
def eql?(other)
Duration === other && other.value.eql?(value)
end
Defined in activesupport/lib/active_support/duration.rb line 426
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Duration