class BSON::Symbol::Raw

def to_bson(buffer = ByteBuffer.new)

Other tags:
    See: http://bsonspec.org/#/specification -

Returns:
  • (BSON::ByteBuffer) - The buffer with the encoded object.

Raises:
  • (EncodingError) - If the symbol is not UTF-8.
def to_bson(buffer = ByteBuffer.new)
  buffer.put_string(to_s)
end