# File lib/moped/bson/binary.rb, line 36 def ==(other) BSON::Binary === other && data == other.data && type == other.type end
# File lib/moped/bson/binary.rb, line 45 def __bson_dump__(io, key) io << Types::BINARY io << key io << NULL_BYTE if type == :old io << [data.bytesize + 4].pack(INT32_PACK) io << SUBTYPE_MAP[type] io << [data.bytesize].pack(INT32_PACK) io << data else io << [data.bytesize].pack(INT32_PACK) io << SUBTYPE_MAP[type] io << data end end
# File lib/moped/bson/binary.rb, line 41 def hash [data, type].hash end
Generated with the Darkfish Rdoc Generator 2.