module BSON::TrueClass
def bson_type
- Since: - 2.0.0
Returns:
-
(String)
- The character 0x08.
Other tags:
- Example: Get the bson type. -
def bson_type Boolean::BSON_TYPE end
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