Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/middleman-jspm/commands.rb
Instance Method Summary collapse
Instance Method Details
#colorize(color_code) ⇒ Object
4 5 6 |
# File 'lib/middleman-jspm/commands.rb', line 4 def colorize(color_code) "\e[#{color_code}m#{self}\e[0m" end |
#light_blue ⇒ Object
12 13 14 |
# File 'lib/middleman-jspm/commands.rb', line 12 def light_blue colorize(36) end |
#red ⇒ Object
8 9 10 |
# File 'lib/middleman-jspm/commands.rb', line 8 def red colorize(31) end |