Class: Moped::BSON::Document

Inherits:
Hash show all
Defined in:
lib/moped/bson/document.rb

Class Method Summary collapse

Methods included from Extensions::Hash::ClassMethods

#__bson_load__

Methods included from Extensions::Hash

#__bson_dump__

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