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.



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

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

Instance Attribute Details

#logExprObject (readonly)

Returns the value of attribute logExpr.



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

def logExpr
  @logExpr
end

#settingObject (readonly)

Returns the value of attribute setting.



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

def setting
  @setting
end