Module: Niceql::StringColorize
- Defined in:
- lib/niceql.rb
Class Method Summary collapse
Class Method Details
.colorize_err(err) ⇒ Object
14 15 16 17 |
# File 'lib/niceql.rb', line 14 def self.colorize_err(err) # red ANSI color "\e[0;31;49m#{err}\e[0m" end |
.colorize_str(str) ⇒ Object
10 11 12 13 |
# File 'lib/niceql.rb', line 10 def self.colorize_str(str) # cyan ANSI color "\e[0;36;49m#{str}\e[0m" end |
.colorize_verb(str) ⇒ Object
6 7 8 9 |
# File 'lib/niceql.rb', line 6 def self.colorize_verb( str) # yellow ANSI color "\e[0;33;49m#{str}\e[0m" end |