module BSON::String::ClassMethods
Public Instance Methods
from_bson(buffer, **options)
click to toggle source
Deserialize a string from BSON
.
@param [ ByteBuffer
] buffer The byte buffer.
@option options [ nil | :bson ] :mode Decoding mode to use.
@return [ Regexp
] The decoded string.
@see bsonspec.org/#/specification
@since 2.0.0
# File lib/bson/string.rb, line 134 def from_bson(buffer, **options) buffer.get_string end