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