Class: Nanoc::CLI::StreamCleaners::UTF8 Private
- Defined in:
- lib/nanoc/cli/stream_cleaners/utf8.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.
Simplifies output by replacing UTF-8 characters with their ASCII decompositions.
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 10 |
# File 'lib/nanoc/cli/stream_cleaners/utf8.rb', line 7 def clean(s) # FIXME: this decomposition is not generally usable s.gsub(/“|”/, '"').gsub(/‘|’/, '\'').gsub('…', '...').gsub('©', '(c)') end |