Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/tv.rb
Overview
add colors
Instance Method Summary collapse
Instance Method Details
#colorize(bg) ⇒ Object
3 4 5 |
# File 'lib/tv.rb', line 3 def colorize(bg) "\e[0;0;#{bg}m#{self}\e[0;0m" end |