Class: Moped::BSON::Document
Class Method Summary collapse
Methods included from Extensions::Hash::ClassMethods
Methods included from Extensions::Hash
Class Method Details
.deserialize(io, document = new) ⇒ Object
6 7 8 |
# File 'lib/moped/bson/document.rb', line 6 def deserialize(io, document = new) __bson_load__(io, document) end |
.serialize(document, io = "") ⇒ Object
10 11 12 |
# File 'lib/moped/bson/document.rb', line 10 def serialize(document, io = "") document.__bson_dump__(io) end |