Parent

Methods

Class/Module Index [+]

Quicksearch

Nanoc::CLI::StreamCleaners::ANSIColors

Removes ANSI color escape sequences.

Public Instance Methods

clean(s) click to toggle source

@see Nanoc::CLI::StreamCleaners::Abstract#clean

# File lib/nanoc/cli/stream_cleaners/ansi_colors.rb, line 8
def clean(s)
  s.gsub(/\e\[.+?m/, '')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.