Module: JSI::Util::FingerprintHash Private

Included in:
Base, Ptr, Schema::Ref, AttrStruct, Validation::Result
Defined in:
lib/jsi/util.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object Also known as: eql?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

overrides BasicObject#==


112
113
114
# File 'lib/jsi/util.rb', line 112

def ==(other)
  __id__ == other.__id__ || (other.respond_to?(:jsi_fingerprint) && other.jsi_fingerprint == self.jsi_fingerprint)
end

#hashObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

overrides Kernel#hash


119
120
121
# File 'lib/jsi/util.rb', line 119

def hash
  jsi_fingerprint.hash
end