Module: JSI::Util::Private::FingerprintHash Private
- Included in:
- AttrStruct
- Defined in:
- lib/jsi/util/private.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
-
#==(other) ⇒ Object
(also: #eql?)
private
overrides BasicObject#==.
-
#hash ⇒ Object
private
overrides Kernel#hash.
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#==
94 95 96 |
# File 'lib/jsi/util/private.rb', line 94 def ==(other) __id__ == other.__id__ || (other.respond_to?(:jsi_fingerprint) && other.jsi_fingerprint == jsi_fingerprint) end |
#hash ⇒ Object
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
101 102 103 |
# File 'lib/jsi/util/private.rb', line 101 def hash jsi_fingerprint.hash end |