module Makitzo::Logging::Colorize
Public Instance Methods
bold(text)
click to toggle source
# File lib/makitzo/logging/colorize.rb, line 3 def bold(text) if use_color? "\033[1m#{text}\033[0m" else text end end
colorize(text, ansi, bold = false)
click to toggle source
# File lib/makitzo/logging/colorize.rb, line 11 def colorize(text, ansi, bold = false) if use_color? code = "\033[" code << "1;" if bold code << "#{ansi}m" code + text + "\033[0m" else text end end