class Mutest::Color
Class to colorize strings
Constants
- BLUE
- GREEN
- NONE
- RED
Public Instance Methods
format(text)
click to toggle source
Format text with color
@param [String] text
@return [String]
# File lib/mutest/color.rb, line 12 def format(text) "\e[#{code}m#{text}\e[0m" end