Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/app_up/shell_runner.rb
Overview
PETE: hack
Instance Method Summary collapse
-
#colorize(color_code) ⇒ Object
colorization.
- #green ⇒ Object
- #pink ⇒ Object
- #red ⇒ Object
- #yellow ⇒ Object
Instance Method Details
#colorize(color_code) ⇒ Object
colorization
80 81 82 |
# File 'lib/app_up/shell_runner.rb', line 80 def colorize(color_code) "\e[#{color_code}m#{self}\e[0m" end |
#green ⇒ Object
88 89 90 |
# File 'lib/app_up/shell_runner.rb', line 88 def green colorize(32) end |
#pink ⇒ Object
96 97 98 |
# File 'lib/app_up/shell_runner.rb', line 96 def pink colorize(35) end |
#red ⇒ Object
84 85 86 |
# File 'lib/app_up/shell_runner.rb', line 84 def red colorize(31) end |
#yellow ⇒ Object
92 93 94 |
# File 'lib/app_up/shell_runner.rb', line 92 def yellow colorize(33) end |