struct

Spectator::Formatting::Components::Block

Inherits Struct / Value / Object

Base type for handling indented output. Indents are tracked and automatically printed. Use #indent to increase the indent for the duration of a block. Use #line to produce a line with an indentation prefixing it.

Constructors

new(*, indent : Int32 = INDENT)

Creates the block. A default indent size can be specified.

Source