Module: Raif::Utils::Colors
- Defined in:
- lib/raif/utils/colors.rb
Class Method Summary collapse
Class Method Details
.blue(text) ⇒ Object
18 19 20 |
# File 'lib/raif/utils/colors.rb', line 18 def self.blue(text) "\e[34m#{text}\e[0m" end |
.green(text) ⇒ Object
6 7 8 |
# File 'lib/raif/utils/colors.rb', line 6 def self.green(text) "\e[32m#{text}\e[0m" end |
.red(text) ⇒ Object
10 11 12 |
# File 'lib/raif/utils/colors.rb', line 10 def self.red(text) "\e[31m#{text}\e[0m" end |
.yellow(text) ⇒ Object
14 15 16 |
# File 'lib/raif/utils/colors.rb', line 14 def self.yellow(text) "\e[33m#{text}\e[0m" end |