class
Crygen::Utils::Indentation
- Crygen::Utils::Indentation
- Reference
- Object
Overview
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).
Defined in:
utils/indentation.crClass Method Summary
-
.add_indent(size : UInt8 = 2) : Void
Adds the indentation with the defined size.
-
.complete_reset : Void
Resets the indentation to zero without restoration.
-
.generate : String
Generate the indentation.
-
.remove_indent(size : UInt8 = 2) : Void
Removes the indentation with the defined size.
-
.reset : Void
Resets temporarily the indentation to zero but keep the number for restoring.
-
.restore : Void
Restores the number of spaces for indentation.
Class Method Detail
def self.reset : Void
#
Resets temporarily the indentation to zero but keep the number for restoring.