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(str) ⇒ Object private
Instance Method Details
#clean(str) ⇒ 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.
9 10 11 |
# File 'lib/nanoc/cli/stream_cleaners/ansi_colors.rb', line 9 def clean(str) str.gsub(/\e\[.+?m/, '') end |