Method: ActiveSupport::Duration#==

Defined in:
activesupport/lib/active_support/duration.rb

#==(other) ⇒ Object

Returns true if other is also a Duration instance with the same value, or if 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