Module: CommandKit::Colors::ANSI
- Defined in:
- lib/wq/cli/colors_ext.rb
Constant Summary collapse
- ITALICS =
ANSI code for italics text
"\e[3m"- RESET_ITALICS =
ANSI code to disable italics
"\e[23m"
Class Method Summary collapse
-
.italics(string = nil) ⇒ String, ITALICS
Italicizes the text.
Class Method Details
.italics(string = nil) ⇒ String, ITALICS
Italicizes the text.
25 26 27 28 29 |
# File 'lib/wq/cli/colors_ext.rb', line 25 def italics(string=nil) if string then "#{ITALICS}#{string}#{RESET_ITALICS}" else ITALICS end end |