Module: CBOR::PP::EqlMixin

Included in:
FalseClass, Float, NilClass, Numeric, TrueClass
Defined in:
lib/cbor-pp.rb

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


113
114
115
116
117
118
119
# File 'lib/cbor-pp.rb', line 113

def eql?(other)
  if other.respond_to? :__getobj__
    eql? other.__getobj__
  else
    super
  end
end