Class: TaskJuggler::RTFWithQuerySupport

Inherits:
RichTextFunctionHandler show all
Defined in:
lib/taskjuggler/RichText/RTFWithQuerySupport.rb

Direct Known Subclasses

RTFQuery, RTFReportLink

Instance Attribute Summary

Attributes inherited from RichTextFunctionHandler

#blockFunction, #function

Instance Method Summary collapse

Methods included from MessageHandler

#critical, #debug, #error, #fatal, #info, #warning

Constructor Details

#initialize(type, sourceFileInfo = nil) ⇒ RTFWithQuerySupport

Returns a new instance of RTFWithQuerySupport.



20
21
22
23
# File 'lib/taskjuggler/RichText/RTFWithQuerySupport.rb', line 20

def initialize(type, sourceFileInfo = nil)
  super
  @query = nil
end

Instance Method Details

#setQuery(query) ⇒ Object

This function must be called to register the Query object that will be used to resolve the queries. It will create a copy of the object since it will modify it.



28
29
30
# File 'lib/taskjuggler/RichText/RTFWithQuerySupport.rb', line 28

def setQuery(query)
  @query = query.dup
end