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)



347
348
349
# File 'lib/highline.rb', line 347

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