Module: Moped::BSON::Extensions::Symbol::ClassMethods

Included in:
Symbol
Defined in:
lib/moped/bson/extensions/symbol.rb

Instance Method Summary collapse

Instance Method Details

#__bson_load__(io) ⇒ Object



26
27
28
# File 'lib/moped/bson/extensions/symbol.rb', line 26

def __bson_load__(io)
  io.read(*io.read(4).unpack(INT32_PACK)).from_utf8_binary.chop!.intern
end