Parent

Class/Module Index [+]

Quicksearch

TaskJuggler::CellSettingPatternList

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

Public Class Methods

new() click to toggle source
# File lib/taskjuggler/TableColumnDefinition.rb, line 33
def initialize
  @patterns = []
end

Public Instance Methods

addPattern(pattern) click to toggle source

Add a new pattern to the list.

# File lib/taskjuggler/TableColumnDefinition.rb, line 38
def addPattern(pattern)
  @patterns << pattern
end
getPattern(query) click to toggle source

Get the RichText that matches the property and scopeProperty.

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.