Sha256: e0158f173011eeb0610b3bef60e96165bfef5836386676b7c94b7dc1cb316b26

Contents?: true

Size: 129 Bytes

Versions: 51

Compression:

Stored size: 129 Bytes

Contents

class Hash
  def to_bson(*args)
    {}.tap do |hash|
      each {|key, value| hash[key.to_s] = value.to_bson}
    end
  end  
end

Version data entries

51 entries across 51 versions & 3 rubygems

Version Path
mongo_doc-0.6.34 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.33 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.32 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.31 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.30 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.29 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.28 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.27 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.26 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.25 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.23 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.22 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.21 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.20 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.19 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.18 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.17 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.16 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.15 lib/mongo_doc/ext/hash.rb
mongo_doc-0.6.14 lib/mongo_doc/ext/hash.rb