class Nanoc::CLI::StreamCleaners::ANSIColors
Removes ANSI color escape sequences.
Public Instance Methods
clean(str)
click to toggle source
@see Nanoc::CLI::StreamCleaners::Abstract#clean
# File lib/nanoc/cli/stream_cleaners/ansi_colors.rb, line 9 def clean(str) str.gsub(/\e\[.+?m/, '') end