Class Block
A block of code.
Info:
- License: MIT
- Author: Richard Voelker
Methods
Block.new (self) | Create a new Block. |
Block.AddChild (self, child) | Add a child Block or Line to be rendered with this Block. |
Block.SetIndent (self, indent) | Sets the indent string for this Block. |
Block.BeforeRender (self) | The code to render before rendering all of this Block's children. |
Block.AfterRender (self) | The code to render after rendering all of this Block's children. |
Block.Render (self) | Render the code for this Block and any children Block/Lines. |
Methods
- Block.new (self)
-
Create a new Block.
Parameters:
- self Block
- Block.AddChild (self, child)
-
Add a child Block or Line to be rendered with this
Block.
Parameters:
- self Block
- child Block/Line The child to add.
- Block.SetIndent (self, indent)
-
Sets the indent string for this Block.
Parameters:
- Block.BeforeRender (self)
-
The code to render before rendering all of this Block's
children.
Parameters:
- self Block
- Block.AfterRender (self)
-
The code to render after rendering all of this Block's
children.
Parameters:
- self Block
- Block.Render (self)
-
Render the code for this Block and any children Block/Lines.
Parameters:
- self Block