Parent

Methods

Class/Module Index [+]

Quicksearch

Nanoc::CLI::StreamCleaners::UTF8

Simplifies output by replacing UTF-8 characters with their ASCII decompositions.

Public Instance Methods

clean(s) click to toggle source

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

# File lib/nanoc/cli/stream_cleaners/utf8.rb, line 8
def clean(s)
  # FIXME this decomposition is not generally usable
  s.gsub(/“|”/, '"').gsub(/‘|’/, '\').gsub('…', '...').gsub('©', '(c)')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.