Class | Nanoc::CLI::CleaningStream |
In: |
lib/nanoc/cli/cleaning_stream.rb
|
Parent: | Object |
An output stream that passes output through stream cleaners. This can be used to strip ANSI color sequences, for instance.
Adds a stream cleaner for the given class to this cleaning stream. If the cleaning stream already has the given stream cleaner, nothing happens.
@param [Nanoc::CLI::StreamCleaners::Abstract] klass The class of the
stream cleaner to add
@return [void]
Removes the stream cleaner for the given class from this cleaning stream. If the cleaning stream does not have the given stream cleaner, nothing happens.
@param [Nanoc::CLI::StreamCleaners::Abstract] klass The class of the
stream cleaner to add
@return [void]