Returns true if other is also a Duration instance with the same value, or if other == value.
true
other
value
other == value
341 342 343 344 345 346 347
# File 'activesupport/lib/active_support/duration.rb', line 341 def ==(other) if Duration === other other.value == value else other == value end end