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:

Block.AddChild (self, child)
Add a child Block or Line to be rendered with this Block.

Parameters:

Block.SetIndent (self, indent)
Sets the indent string for this Block.

Parameters:

  • self Block
  • indent string

    The indent string to place before each

    line of code.
    
Block.BeforeRender (self)
The code to render before rendering all of this Block's children.

Parameters:

Block.AfterRender (self)
The code to render after rendering all of this Block's children.

Parameters:

Block.Render (self)
Render the code for this Block and any children Block/Lines.

Parameters:

generated by LDoc 1.4.3 Last updated 2016-07-26 17:10:04