Class PageTemplate::BlockCommand
In: lib/PageTemplate/commands.rb
Parent: Command

BlockCommand provides a single interface to multiple Command objects. This should probably never be called by the designer or programmer, but by StackableCommands.

Methods

add   length   new   output   to_s  

Public Class methods

Public Instance methods

Adds command to the end of the BlockCommand‘s chain of Commands.

A TypeError is raised if the object being added is not a ((<Command>)).

Returns the number of Commands held in this BlockCommand

Calls Command#output(namespace) on each Command contained in this object. The output is returned as a single string. If no output is generated, returns an empty string.

Return Commands held, as a string

[Validate]