Class: DependencyChart::Palette

Inherits:
Struct
  • Object
show all
Defined in:
lib/jirametrics/dependency_chart.rb

Overview

A fill and the label colour that goes on top of it, kept together because they are not independent choices: some of these fills are light and take black text, others are dark and take white, and a node that took its fill from one and its label from another would be unreadable. Always hand them out as a pair.

Instance Attribute Summary collapse

Instance Attribute Details

#fillObject

Returns the value of attribute fill

Returns:

  • (Object)

    the current value of fill



39
40
41
# File 'lib/jirametrics/dependency_chart.rb', line 39

def fill
  @fill
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



39
40
41
# File 'lib/jirametrics/dependency_chart.rb', line 39

def label
  @label
end