Since:
2.0.0
Deserialize a symbol from BSON.
Parameters:
The bson representing a symbol.
Returns:
The decoded symbol.
See Also:
83 84 85
# File 'lib/bson/symbol.rb', line 83 def from_bson(bson) bson.read(Int32.from_bson(bson)).from_bson_string.chop!.intern end