Class: Class

Inherits:
Object show all
Defined in:
lib/cbor-pp.rb

Instance Method Summary collapse

Instance Method Details

#===(other) ⇒ Object



138
139
140
141
142
143
144
# File 'lib/cbor-pp.rb', line 138

def ===(other)
  if other.respond_to? :__getobj__
    other.__getobj__.kind_of? self
  else
    other.kind_of? self
  end
end