module Ccp::Utils::Colorize::Back

Constants

BLACK
BLUE
CLEAR
CYAN
GREEN
MAGENTA
RED
WHITE
YELLOW

Public Instance Methods

aqua(text) click to toggle source
# File lib/ccp/utils/colorize.rb, line 60
def aqua   (text) CYAN    + text.to_s + CLEAR; end
black(text) click to toggle source
# File lib/ccp/utils/colorize.rb, line 51
def black  (text) BLACK   + text.to_s + CLEAR; end
blue(text) click to toggle source
# File lib/ccp/utils/colorize.rb, line 55
def blue   (text) BLUE    + text.to_s + CLEAR; end
colorize(text, code) click to toggle source
# File lib/ccp/utils/colorize.rb, line 49
def colorize(text, code); code + text.to_s + CLEAR; end
cyan(text) click to toggle source
# File lib/ccp/utils/colorize.rb, line 59
def cyan   (text) CYAN    + text.to_s + CLEAR; end
green(text) click to toggle source
# File lib/ccp/utils/colorize.rb, line 53
def green  (text) GREEN   + text.to_s + CLEAR; end
magenta(text) click to toggle source
# File lib/ccp/utils/colorize.rb, line 56
def magenta(text) MAGENTA + text.to_s + CLEAR; end
pink(text) click to toggle source
# File lib/ccp/utils/colorize.rb, line 58
def pink   (text) MAGENTA + text.to_s + CLEAR; end
purple(text) click to toggle source
# File lib/ccp/utils/colorize.rb, line 57
def purple (text) MAGENTA + text.to_s + CLEAR; end
red(text) click to toggle source
# File lib/ccp/utils/colorize.rb, line 52
def red    (text) RED     + text.to_s + CLEAR; end
white(text) click to toggle source
# File lib/ccp/utils/colorize.rb, line 61
def white  (text) WHITE   + text.to_s + CLEAR; end
yellow(text) click to toggle source
# File lib/ccp/utils/colorize.rb, line 54
def yellow (text) YELLOW  + text.to_s + CLEAR; end