Module: JSI::FingerprintHash
- Included in:
- Base, JSON::Node, JSON::Pointer, Schema
- Defined in:
- lib/jsi/util.rb
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
95 96 97 |
# File 'lib/jsi/util.rb', line 95 def ==(other) object_id == other.object_id || (other.respond_to?(:fingerprint) && other.fingerprint == self.fingerprint) end |
#hash ⇒ Object
101 102 103 |
# File 'lib/jsi/util.rb', line 101 def hash fingerprint.hash end |