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

Command classes generate text output based on conditions which vary between each class. Command provides an abstract base class to show interface.

Methods

output   to_s  

Attributes

called_as  [R] 
closer  [R] 
modifier  [R] 

Public Instance methods

Subclasses of Command use the output method to generate their text output. namespace is a Namespace object, which may be required by a particular subclass.

Command#output must return a string

to_s of a Command prints out class and command information, for debugging and visual summary of the template without parsing the outputs.

[Validate]