module BSON::TrueClass
def to_bson(buffer = ByteBuffer.new)
- Since: - 2.0.0
Other tags:
- See: http://bsonspec.org/#/specification -
Returns:
-
(BSON::ByteBuffer)
- The buffer with the encoded object.
Other tags:
- Example: Get the true boolean as encoded BSON. -
def to_bson(buffer = ByteBuffer.new) buffer.put_byte(TRUE_BYTE) end