The CellSettingPatternList holds a list of possible test pattern for a cell or tooltip. The first entry who's LogicalExpression matches is used.
# File lib/taskjuggler/TableColumnDefinition.rb, line 34 def initialize @patterns = [] end
Add a new pattern to the list.
# File lib/taskjuggler/TableColumnDefinition.rb, line 39 def addPattern(pattern) @patterns << pattern end
Get the RichText that matches the property and scopeProperty.
# File lib/taskjuggler/TableColumnDefinition.rb, line 44 def getPattern(query) @patterns.each do |pattern| if pattern.logExpr.eval(query) return pattern.setting end end nil end