Method: BSON::Binary#hash

Defined in:
lib/bson/binary.rb

#hashFixnum

Generates a Fixnum hash value for this object.

Allows using Binary as hash keys.

Returns:

  • (Fixnum)

Since:

  • 2.3.1



127
128
129
# File 'lib/bson/binary.rb', line 127

def hash
  [data, type].hash
end