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.



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

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.



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

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