spec/runners/gridfs.rb
# Transform documents to have the correct object types for serialization.
#
# @param [ Array<Hash> ] docs The documents to transform.
# @param [ Hash ] opts The options.
#
# @return [ Array<Hash> ] The transformed documents.
#
# @since 2.1.0
Transform documents to have the correct object types for serialization.
Transform documents to have the correct object types for serialization .
def transform_docs(docs, opts = {})
        docs.collect do |doc|
          doc.each do |k, v|
            doc[k] = send("convert_#{k}", v, opts) if respond_to?("convert_#{k}")
          end
          doc
        end
      end
def transform_docs ( docs , opts = { } ) docs . collect do | doc | doc . each do | k , v | doc [ k ] = send ( "convert_#{k}" , v , opts ) if respond_to? ( "convert_#{k}" ) end doc end end
Transform documents to have the correct object types for serialization.
Transform documents to have the correct object types for serialization .
The transformed documents.
The transformed documents .
 Array<Hash> 
docs
opts
opts The options.
opts The options .
since
None