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.

Defined in:

cannon/core_ext.cr

Constructors

Instance Method Summary

Class methods inherited from class Object

to_cannon_io(io, value) to_cannon_io

Constructor Detail

def self.from_cannon_io(io) : self #

Creates a Bool from io.


[View source]

Instance Method Detail

def to_cannon_io(io) #

Writes the Bool into io. Booleans are stored as UInt32s.


[View source]