Class: Colorize
- Inherits:
-
Object
- Object
- Colorize
- Defined in:
- lib/remote_database_importer/colorize.rb
Class Method Summary collapse
Class Method Details
.blue(text) ⇒ Object
10 11 12 |
# File 'lib/remote_database_importer/colorize.rb', line 10 def self.blue(text) "\e[94m#{text}\e[0m" end |
.green(text) ⇒ Object
6 7 8 |
# File 'lib/remote_database_importer/colorize.rb', line 6 def self.green(text) "\e[32m#{text}\e[0m" end |
.red(text) ⇒ Object
2 3 4 |
# File 'lib/remote_database_importer/colorize.rb', line 2 def self.red(text) "\033[31m#{text}\033[0m" end |