Class: TaskJuggler::RTFWithQuerySupport
- Inherits:
-
RichTextFunctionHandler
- Object
- RichTextFunctionHandler
- TaskJuggler::RTFWithQuerySupport
- Defined in:
- lib/taskjuggler/RichText/RTFWithQuerySupport.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from RichTextFunctionHandler
Instance Method Summary collapse
-
#initialize(type, sourceFileInfo = nil) ⇒ RTFWithQuerySupport
constructor
A new instance of RTFWithQuerySupport.
-
#setQuery(query) ⇒ Object
This function must be called to register the Query object that will be used to resolve the queries.
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 |