Module: Ccp::Utils::Colorize::Back
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
-
#aqua(text) ⇒ Object
alias.
- #black(text) ⇒ Object
- #blue(text) ⇒ Object
- #colorize(text, code) ⇒ Object
- #cyan(text) ⇒ Object
- #green(text) ⇒ Object
- #magenta(text) ⇒ Object
-
#pink(text) ⇒ Object
alias.
-
#purple(text) ⇒ Object
alias.
- #red(text) ⇒ Object
- #white(text) ⇒ Object
- #yellow(text) ⇒ Object
Instance Method Details
#aqua(text) ⇒ Object
alias
58 |
# File 'lib/ccp/utils/colorize.rb', line 58 def aqua (text) CYAN + text.to_s + CLEAR; end |
#black(text) ⇒ Object
49 |
# File 'lib/ccp/utils/colorize.rb', line 49 def black (text) BLACK + text.to_s + CLEAR; end |
#blue(text) ⇒ Object
53 |
# File 'lib/ccp/utils/colorize.rb', line 53 def blue (text) BLUE + text.to_s + CLEAR; end |
#colorize(text, code) ⇒ Object
47 |
# File 'lib/ccp/utils/colorize.rb', line 47 def colorize(text, code); code + text.to_s + CLEAR; end |
#cyan(text) ⇒ Object
57 |
# File 'lib/ccp/utils/colorize.rb', line 57 def cyan (text) CYAN + text.to_s + CLEAR; end |
#green(text) ⇒ Object
51 |
# File 'lib/ccp/utils/colorize.rb', line 51 def green (text) GREEN + text.to_s + CLEAR; end |
#magenta(text) ⇒ Object
54 |
# File 'lib/ccp/utils/colorize.rb', line 54 def magenta(text) MAGENTA + text.to_s + CLEAR; end |
#pink(text) ⇒ Object
alias
56 |
# File 'lib/ccp/utils/colorize.rb', line 56 def pink (text) MAGENTA + text.to_s + CLEAR; end |
#purple(text) ⇒ Object
alias
55 |
# File 'lib/ccp/utils/colorize.rb', line 55 def purple (text) MAGENTA + text.to_s + CLEAR; end |
#red(text) ⇒ Object
50 |
# File 'lib/ccp/utils/colorize.rb', line 50 def red (text) RED + text.to_s + CLEAR; end |