Parent

Methods

Class/Module Index [+]

Quicksearch

Nanoc::CLI::StreamCleaners::Abstract

Superclass for all stream cleaners. Stream cleaners have a single method, {clean}, that takes a string and returns a cleaned string. Stream cleaners can have state, so they can act as a FSM.

@abstract Subclasses must implement {clean}

Public Instance Methods

clean(s) click to toggle source

Returns a cleaned version of the given string.

@param [String] s The string to clean

@return [String] The cleaned string

# File lib/nanoc/cli/stream_cleaners/abstract.rb, line 16
def clean(s)
  raise NotImplementedError, "Subclasses of Nanoc::CLI::StreamCleaners::Abstract must implement #clean"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.