class HighLine::String


Highline.colorize_strings
require ‘highline’
methods can be added to the built-in String class, as follows:
For those less squeamish about possible conflicts, the same convenience
HighLine.color(highline_string, :bright_blue, :blink, :underline)
highline_string.color(:bright_blue, :blink, :underline)
highline_string.bright_blue.blink.underline
following are equivalent:
Additionally, convenience methods can be chained, for instance the
* styles e.g. highline_string.underline
or highline_string.on_rgb(255,96,0)
* RGB background colors e.g. highline_string.on_rgb_ff6000
* background colors e.g. highline_string.on_magenta
or highline_string.rgb(255,96,0)
* RGB colors e.g. highline_string.rgb_ff6000
* colors e.g. highline_string.magenta
:underline)
* ‘color’ method e.g. highline_string.color(:bright_blue,
Available convenience methods include:
for colorization.
HighLine::String is a subclass of String with convenience methods added