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:

../../_temp/crystal-latest-true-undefined/share/crystal/src/bool.cr
../../_temp/crystal-latest-true-undefined/share/crystal/src/json/to_json.cr
../../_temp/crystal-latest-true-undefined/share/crystal/src/primitives.cr
../../_temp/crystal-latest-true-undefined/share/crystal/src/yaml/to_yaml.cr
charms/bool_extensions.cr

Instance methods inherited from class Object

blank? : Bool blank?, present? : Bool present?