Class TaskJuggler::CellSettingPatternList
In: lib/taskjuggler/TableColumnDefinition.rb
Parent: Object

The CellSettingPatternList holds a list of possible test pattern for a cell or tooltip. The first entry who‘s LogicalExpression matches is used.

Methods

addPattern   getPattern   new  

Public Class methods

[Source]

# File lib/taskjuggler/TableColumnDefinition.rb, line 35
    def initialize
      @patterns = []
    end

Public Instance methods

Add a new pattern to the list.

[Source]

# File lib/taskjuggler/TableColumnDefinition.rb, line 40
    def addPattern(pattern)
      @patterns << pattern
    end

Get the RichText that matches the property and scopeProperty.

[Source]

# File lib/taskjuggler/TableColumnDefinition.rb, line 45
    def getPattern(query)
      @patterns.each do |pattern|
        if pattern.logExpr.eval(query)
          return pattern.setting
        end
      end
      nil
    end

[Validate]