Method: MongoDoc::BSON.decode
- Defined in:
- lib/mongo_doc/bson.rb
.decode(bson, options = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/mongo_doc/bson.rb', line 7 def self.decode(bson, = {}) return bson if [:raw_json] case bson when Hash bson_create(bson, ) when Array array_create(bson, ) else bson end end |