class Unparser::Color

Class to colorize strings

def format(text)

Returns:
  • (String) -

Parameters:
  • text (String) --
def format(text)
  "\e[#{code}m#{text}\e[0m"
end