Class: Nanoc::CLI::StreamCleaners::ANSIColors Private
- Defined in:
- lib/nanoc/cli/stream_cleaners/ansi_colors.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Removes ANSI color escape sequences.
Instance Method Summary collapse
- #clean(s) ⇒ Object private
Instance Method Details
#clean(s) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/nanoc/cli/stream_cleaners/ansi_colors.rb', line 7 def clean(s) s.gsub(/\e\[.+?m/, '') end |