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
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 |