Module: Inch::StringExt
- Defined in:
- lib/inch/core_ext/string.rb
Instance Method Summary collapse
Instance Method Details
#color(color_name) ⇒ Object
5 6 7 |
# File 'lib/inch/core_ext/string.rb', line 5 def color(color_name) Term::ANSIColor.color(color_name, self) end |
#on_color(color_name) ⇒ Object
9 10 11 |
# File 'lib/inch/core_ext/string.rb', line 9 def on_color(color_name) Term::ANSIColor.on_color(color_name, self) end |
#uncolor ⇒ Object
13 14 15 |
# File 'lib/inch/core_ext/string.rb', line 13 def uncolor Term::ANSIColor.uncolor(self) end |