Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/renegade/status.rb
Overview
Add color options
Instance Method Summary collapse
Instance Method Details
#error ⇒ Object
19 20 21 |
# File 'lib/renegade/status.rb', line 19 def error "\e[31m × #{self}\e[0m" end |
#highlight ⇒ Object
3 4 5 |
# File 'lib/renegade/status.rb', line 3 def highlight "\e[36m#{self}\e[0m" end |
#status ⇒ Object
7 8 9 |
# File 'lib/renegade/status.rb', line 7 def status "\e[35m#{self}\e[0m" end |
#success ⇒ Object
11 12 13 |
# File 'lib/renegade/status.rb', line 11 def success "\e[32m √ #{self}\e[0m" end |
#warning ⇒ Object
15 16 17 |
# File 'lib/renegade/status.rb', line 15 def warning "\e[33m × #{self}\e[0m" end |