module BSON::Regexp::ClassMethods
def from_bson(buffer, **_)
- See: http://bsonspec.org/#/specification -
Returns:
-
(Regexp)- The decoded regular expression.
Options Hash:
(**opts)-
:mode(nil | :bson) -- Decoding mode to use.
Parameters:
-
buffer(ByteBuffer) -- The byte buffer.
Other tags:
- Note: - If the argument cannot be parsed, an exception will be raised
def from_bson(buffer, **_) pattern = buffer.get_cstring options = buffer.get_cstring Raw.new(pattern, options) end