class ActiveSupport::Duration

def ==(other)

same +value+, or if other == value.
Returns +true+ if +other+ is also a Duration instance with the
def ==(other)
  if Duration === other
    other.value == value
  else
    other == value
  end
end