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:

objects.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

to_xml(io : IO, *, indent : XMLT::IndentOptions = nil) : Nil
to_xml(*, indent : XMLT::IndentOptions = nil) : String
to_xml

Class methods inherited from class Object

from_xml(xml : String)
from_xml(node : XML::Node)
from_xml(xml : String, *, root : String)
from_xml(node : XML::Node, *, root : String)
from_xml

Constructor Detail

def self.new(xml : XML::Node) #

[View source]

Instance Method Detail

def to_xml(xml : XML::Builder) : Nil #

[View source]
def to_xml(io : IO, *, key : String | Nil = nil, indent : XMLT::IndentOptions = nil) : Nil #

[View source]
def to_xml(*, key : String | Nil = nil, indent : XMLT::IndentOptions = nil) : String #

[View source]