Sha256: aa9b5794186478ab693753cd76cae7c9145d6b1751d8c34b4f6f76f12c7121d3
Contents?: true
Size: 667 Bytes
Versions: 62
Compression:
Stored size: 667 Bytes
Contents
module Nanoc::CLI::StreamCleaners # 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} # # @api private class Abstract # Returns a cleaned version of the given string. # # @param [String] s The string to clean # # @return [String] The cleaned string def clean(s) # rubocop:disable Lint/UnusedMethodArgument raise NotImplementedError, 'Subclasses of Nanoc::CLI::StreamCleaners::Abstract must implement #clean' end end end
Version data entries
62 entries across 62 versions & 1 rubygems