Parent

Methods

Class Index [+]

Quicksearch

TaskJuggler::RichTextFunctionHandler

This class is the abstract base class for all RichText function handlers. A function handler is responsible for a certain function such as ‘example’ or ‘query’. functions are used in internal RichText references such as ’[[example:Allocation 2]]’. ‘example’ is the function, ‘Allocation’ is the path and ‘2’ is the first argument. Arguments are optional. The function handler can turn such internal references into Strings or XMLElement trees. Therefor, each derived handler needs to implement a to_s, to_html and to_tagged method that takes two parameter. The first is the path, the second is the argument Array.

Attributes

function[R]
blockFunction[R]

Public Class Methods

new(messageHandler, function, sourceFileInfo = nil) click to toggle source
    # File lib/RichTextFunctionHandler.rb, line 28
28:     def initialize(messageHandler, function, sourceFileInfo = nil)
29:       @messageHandler = messageHandler
30:       @function = function
31:       @blockFunction = false
32:       @sourceFileInfo = sourceFileInfo
33:     end

Public Instance Methods

error(id, text) click to toggle source
    # File lib/RichTextFunctionHandler.rb, line 35
35:     def error(id, text)
36:       @messageHandler.error(id, text, @sourceFileInfo) if @messageHandler
37:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.