module Hab::Formatter::Colors
Constants
- STAT_COLORS
- VALUE_COLORS
Public Instance Methods
stat_color(label)
click to toggle source
# File lib/hab/formatter/colors.rb, line 25 def stat_color(label) STAT_COLORS.key?(label) ? STAT_COLORS[label] : :default end
value_color(value)
click to toggle source
# File lib/hab/formatter/colors.rb, line 21 def value_color(value) VALUE_COLORS.select { |key, _color| key.cover? value }.values.first end