Sha256: 39fb043ea39043087bc51cbeb7e8fa2de22c8ba649b1c9c61d014d6a85be7edb
Contents?: true
Size: 465 Bytes
Versions: 4
Compression:
Stored size: 465 Bytes
Contents
require 'bson/byte_buffer' module BSON class Binary < ByteBuffer def inspect string_render = self.to_s if string_render.empty? "<BSON::Binary:#{object_id}>" else if string_render.length > 32 "<BSON::Binary:'#{string_render[0..8]}...'}'>" else "<BSON::Binary:'#{string_render}'>" end end end def eql?(value) self.to_s == value.to_s end end end
Version data entries
4 entries across 4 versions & 1 rubygems