Method: HighLine#uncolor

Defined in:
lib/highline.rb

#uncolor(string) ⇒ String

Remove color codes from a string.

Parameters:

  • string (String)

    to be decolorized

Returns:

  • (String)

    without the ANSI escape sequence (colors)



355
356
357
# File 'lib/highline.rb', line 355

def uncolor(string)
  Style.uncolor(string)
end