Module: Moped::BSON::Extensions::String::ClassMethods
- Included in:
- String
- Defined in:
- lib/moped/bson/extensions/string.rb
Instance Method Summary collapse
Instance Method Details
#__bson_load__(io) ⇒ Object
38 39 40 |
# File 'lib/moped/bson/extensions/string.rb', line 38 def __bson_load__(io) io.read(*io.read(4).unpack(INT32_PACK)).from_utf8_binary.chop! end |