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:

evaluator.cr

Instance Method Summary

Instance methods inherited from class Object

also(& : self | Nil -> _) : self also, or_else(alternative) or_else

Instance Method Detail

def to_m : Objects::MBoolean #

[View source]