struct Bool

Overview

Bool has only two possible values: true and false. They are constructed using these literals:

true  # A Bool that is true
false # A Bool that is false

See Bool literals in the language reference.

Included Modules

Defined in:

core_ext/bool.cr

Constant Summary

BSON_FALSE_BYTE = 0_u8
BSON_TRUE_BYTE = 1_u8

Class Method Summary

Instance Method Summary

Instance methods inherited from module BSON::Value

bson_size bson_size, to_bson to_bson

Class Method Detail

def self.from_bson(bson : IO) #

[View source]

Instance Method Detail

def bson_byte #

[View source]
def bson_size #

[View source]
def to_bson(bson : IO) #

[View source]