Class: TaskJuggler::CellSettingPattern

Inherits:
Object
  • Object
show all
Defined in:
lib/taskjuggler/TableColumnDefinition.rb

Overview

A CellSettingPattern is used to store alternative settings for ReportTableCell settings. These could be the cell text, the tooltip or a color setting. The user can provide multiple options and the LogicalExpression is used to select the pattern for a given cell.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(setting, logExpr) ⇒ CellSettingPattern

Returns a new instance of CellSettingPattern.



25
26
27
28
# File 'lib/taskjuggler/TableColumnDefinition.rb', line 25

def initialize(setting, logExpr)
  @setting = setting
  @logExpr = logExpr
end

Instance Attribute Details

#logExprObject (readonly)

Returns the value of attribute logExpr.



23
24
25
# File 'lib/taskjuggler/TableColumnDefinition.rb', line 23

def logExpr
  @logExpr
end

#settingObject (readonly)

Returns the value of attribute setting.



23
24
25
# File 'lib/taskjuggler/TableColumnDefinition.rb', line 23

def setting
  @setting
end