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