class AwesomeExplain::Utils::Color

Constants

COLOR_ESCAPES

Public Class Methods

fg_color(clr, text) click to toggle source
# File lib/awesome_explain/utils/color.rb, line 11
def self.fg_color(clr, text)
  "\x1B[" + (COLOR_ESCAPES[clr] || 0).to_s + 'm' + (text ? text + "\x1B[0m" : '')
end