class RecordsCount::Colorizer

Public Class Methods

blue(str) click to toggle source
# File lib/records_count.rb, line 8
def blue(str); colorize_string(str, "\e[1m\e[34m"); end
colorize_string(text, color_code) click to toggle source
# File lib/records_count.rb, line 11
def colorize_string(text, color_code); "#{color_code}#{text}\e[0m"; end
dark_blue(str) click to toggle source
# File lib/records_count.rb, line 9
def dark_blue(str); colorize_string(str, "\e[34m"); end
dark_green(str) click to toggle source
# File lib/records_count.rb, line 6
def dark_green(str); colorize_string(str, "\e[32m"); end
green(str) click to toggle source
# File lib/records_count.rb, line 5
def green(str); colorize_string(str, "\e[1m\e[32m"); end
pur(str) click to toggle source
# File lib/records_count.rb, line 10
def pur(str); colorize_string(str, "\e[1m\e[35m"); end
red(str) click to toggle source
# File lib/records_count.rb, line 4
def red(str); colorize_string(str, "\e[1m\e[31m"); end
yellow(str) click to toggle source
# File lib/records_count.rb, line 7
def yellow(str); colorize_string(str, "\e[1m\e[33m"); end