Sha256: 0e87bc41d9a2485032c04684e04dfe8a76dd78d3288f644c48605653bfaed1da

Contents?: true

Size: 287 Bytes

Versions: 25

Compression:

Stored size: 287 Bytes

Contents

module Moped
  module BSON
    class Document < Hash
      class << self

        def deserialize(io, document = new)
          __bson_load__(io, document)
        end

        def serialize(document, io = "")
          document.__bson_dump__(io)
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
moped-1.1.0 lib/moped/bson/document.rb
moped-1.0.0 lib/moped/bson/document.rb
moped-1.0.0.rc lib/moped/bson/document.rb
moped-1.0.0.beta lib/moped/bson/document.rb
moped-1.0.0.alpha lib/moped/bson/document.rb