module BSON::Symbol::ClassMethods
Public Instance Methods
from_bson(buffer)
click to toggle source
Deserialize a symbol from BSON.
@param [ ByteBuffer ] buffer The byte buffer.
@return [ Regexp ] The decoded symbol.
@see bsonspec.org/#/specification
@since 2.0.0
# File lib/bson/symbol.rb, line 103 def from_bson(buffer) buffer.get_string.intern end