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
7 8 9 |
# File 'lib/moped/bson/extensions/string.rb', line 7 def __bson_load__(io) io.read(*io.read(4).unpack(INT32_PACK)).from_utf8_binary.chop! end |