Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/devfromcli.rb
Overview
Extends the String class by adding utility methods for string coloring
Instance Method Summary collapse
Instance Method Details
#blue ⇒ Object
15 16 17 |
# File 'lib/devfromcli.rb', line 15 def blue "\e[34m#{self}\e[0m" end |
#yellow ⇒ Object
11 12 13 |
# File 'lib/devfromcli.rb', line 11 def yellow "\e[33m#{self}\e[0m" end |