Module: BSON::String::ClassMethods
- Defined in:
- lib/bson/string.rb
Overview
Instance Method Summary collapse
-
#from_bson(bson) ⇒ Regexp
Deserialize a string from BSON.
Instance Method Details
#from_bson(bson) ⇒ Regexp
Deserialize a string from BSON.
179 180 181 |
# File 'lib/bson/string.rb', line 179 def from_bson(bson) bson.read(Int32.from_bson(bson)).from_bson_string.chop! end |