Since:
2.0.0
Deserialize a string from BSON.
Parameters:
The bson representing a string.
Returns:
The decoded string.
See Also:
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