module Rugex::Print
Private Instance Methods
colorize_text()
click to toggle source
# File lib/rugex/print.rb, line 5 def colorize_text colors = { :white => "\033[0;37m", :red => "\033[0;31m\033[4m" } @text.gsub(@regex,"#{colors[:red]}\\&#{colors[:white]}") end