# File lib/moped/bson/extensions/hash.rb, line 7 def __bson_dump__(io = "", key = nil) if key io << Types::HASH io << key.to_bson_cstring end start = io.bytesize io << START_LENGTH # write dummy length each do |k, v| v.__bson_dump__(io, k.to_s) end io << EOD stop = io.bytesize io[start, 4] = [stop - start].pack INT32_PACK io end
Generated with the Darkfish Rdoc Generator 2.