Module: BSON::Symbol::ClassMethods
- Defined in:
- lib/bson/symbol.rb
Overview
Instance Method Summary collapse
-
#from_bson(buffer, **options) ⇒ Symbol | BSON::Symbol::Raw
Deserialize a symbol from BSON.
Instance Method Details
#from_bson(buffer, **options) ⇒ Symbol | BSON::Symbol::Raw
Deserialize a symbol from BSON.
190 191 192 193 194 195 196 197 198 |
# File 'lib/bson/symbol.rb', line 190 def from_bson(buffer, **) sym = buffer.get_string.intern if [:mode] == :bson Raw.new(sym) else sym end end |