class BSON::Binary
Public Instance Methods
eql?(value)
click to toggle source
# File lib/mm_uses_uuid/bson_binary_mixin.rb, line 25 def eql?(value) @str.eql?(value.to_s) && @subtype.eql?(value.subtype) end
hash()
click to toggle source
# File lib/mm_uses_uuid/bson_binary_mixin.rb, line 21 def hash [@str, @subtype].hash end
inspect()
click to toggle source
# File lib/mm_uses_uuid/bson_binary_mixin.rb, line 7 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