Methods

BSON::String::ClassMethods

Public Instance Methods

from_bson(bson) click to toggle source

Deserialize a string from BSON.

@param [ BSON ] bson The bson representing a string.

@return [ Regexp ] The decoded string.

@see bsonspec.org/#/specification

@since 2.0.0

# File lib/bson/string.rb, line 178
def from_bson(bson)
  bson.read(Int32.from_bson(bson)).from_bson_string.chop!
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.