Class: PrettyMultitask::Color
- Inherits:
-
Object
- Object
- PrettyMultitask::Color
- Defined in:
- lib/pretty_multitask/color.rb
Overview
Class to provide some ANSI colors
Class Method Summary collapse
Class Method Details
.green(str) ⇒ Object
6 7 8 |
# File 'lib/pretty_multitask/color.rb', line 6 def self.green(str) "\e[32;1m#{str}\e[0m" end |
.red(str) ⇒ Object
14 15 16 |
# File 'lib/pretty_multitask/color.rb', line 14 def self.red(str) "\e[31;1m#{str}\e[0m" end |
.yellow(str) ⇒ Object
10 11 12 |
# File 'lib/pretty_multitask/color.rb', line 10 def self.yellow(str) "\e[33;1m#{str}\e[0m" end |