Module: Ccp::Utils::Colorize::Back

Extended by:
Back
Included in:
Back
Defined in:
lib/ccp/utils/colorize.rb

Constant Summary collapse

CLEAR =
"\e[0m"
BLACK =
"\e[40m"
RED =
"\e[41m"
GREEN =
"\e[42m"
YELLOW =
"\e[43m"
BLUE =
"\e[44m"
MAGENTA =
"\e[45m"
CYAN =
"\e[46m"
WHITE =
"\e[47m"

Instance Method Summary collapse

Instance Method Details

#aqua(text) ⇒ Object

alias



60
# File 'lib/ccp/utils/colorize.rb', line 60

def aqua   (text) CYAN    + text.to_s + CLEAR; end

#black(text) ⇒ Object



51
# File 'lib/ccp/utils/colorize.rb', line 51

def black  (text) BLACK   + text.to_s + CLEAR; end

#blue(text) ⇒ Object



55
# File 'lib/ccp/utils/colorize.rb', line 55

def blue   (text) BLUE    + text.to_s + CLEAR; end

#colorize(text, code) ⇒ Object



49
# File 'lib/ccp/utils/colorize.rb', line 49

def colorize(text, code); code + text.to_s + CLEAR; end

#cyan(text) ⇒ Object



59
# File 'lib/ccp/utils/colorize.rb', line 59

def cyan   (text) CYAN    + text.to_s + CLEAR; end

#green(text) ⇒ Object



53
# File 'lib/ccp/utils/colorize.rb', line 53

def green  (text) GREEN   + text.to_s + CLEAR; end

#magenta(text) ⇒ Object



56
# File 'lib/ccp/utils/colorize.rb', line 56

def magenta(text) MAGENTA + text.to_s + CLEAR; end

#pink(text) ⇒ Object

alias



58
# File 'lib/ccp/utils/colorize.rb', line 58

def pink   (text) MAGENTA + text.to_s + CLEAR; end

#purple(text) ⇒ Object

alias



57
# File 'lib/ccp/utils/colorize.rb', line 57

def purple (text) MAGENTA + text.to_s + CLEAR; end

#red(text) ⇒ Object



52
# File 'lib/ccp/utils/colorize.rb', line 52

def red    (text) RED     + text.to_s + CLEAR; end

#white(text) ⇒ Object



61
# File 'lib/ccp/utils/colorize.rb', line 61

def white  (text) WHITE   + text.to_s + CLEAR; end

#yellow(text) ⇒ Object



54
# File 'lib/ccp/utils/colorize.rb', line 54

def yellow (text) YELLOW  + text.to_s + CLEAR; end