class

Crygen::Utils::Indentation

Inherits Reference < Object

The static class that enables to control the indentation of the code. This is useful when we create the nested objects (for example: nested classes and structs).

Class methods

add_indent(size : UInt8 = 2) : Void

Adds the indentation with the defined size.

Source
complete_reset

Resets the indentation to zero without restoration.

Source
generate

Generate the indentation.

Source
remove_indent(size : UInt8 = 2) : Void

Removes the indentation with the defined size.

Source
reset

Resets temporarily the indentation to zero but keep the number for restoring.

Source
restore

Restores the number of spaces for indentation.

Source