Sha256: 99ff953a90b3a56c3fa469c3561b3aec1dd549795e3480769bc9a633862c0271

Contents?: true

Size: 450 Bytes

Versions: 107

Compression:

Stored size: 450 Bytes

Contents

module Picky
  module API
    module Tokenizer

      module CharacterSubstituter

        def extract_character_substituter thing
          if thing.respond_to? :substitute
            thing
          else
            raise ArgumentError.new <<-ERROR
The substitutes_characters_with option needs a character substituter,
which responds to #substitute(text) and returns substituted_text."
ERROR
          end
        end

      end

    end
  end
end

Version data entries

107 entries across 107 versions & 1 rubygems

Version Path
picky-4.31.3 lib/picky/api/tokenizer/character_substituter.rb
picky-4.31.2 lib/picky/api/tokenizer/character_substituter.rb
picky-4.31.1 lib/picky/api/tokenizer/character_substituter.rb
picky-4.31.0 lib/picky/api/tokenizer/character_substituter.rb
picky-4.30.0 lib/picky/api/tokenizer/character_substituter.rb
picky-4.29.0 lib/picky/api/tokenizer/character_substituter.rb
picky-4.28.1 lib/picky/api/tokenizer/character_substituter.rb
picky-4.27.1 lib/picky/api/tokenizer/character_substituter.rb
picky-4.27.0 lib/picky/api/tokenizer/character_substituter.rb
picky-4.26.2 lib/picky/api/tokenizer/character_substituter.rb
picky-4.26.1 lib/picky/api/tokenizer/character_substituter.rb
picky-4.26.0 lib/picky/api/tokenizer/character_substituter.rb
picky-4.25.3 lib/picky/api/tokenizer/character_substituter.rb
picky-4.25.2 lib/picky/api/tokenizer/character_substituter.rb
picky-4.25.1 lib/picky/api/tokenizer/character_substituter.rb
picky-4.25.0 lib/picky/api/tokenizer/character_substituter.rb
picky-4.24.0 lib/picky/api/tokenizer/character_substituter.rb
picky-4.23.2 lib/picky/api/tokenizer/character_substituter.rb
picky-4.23.1 lib/picky/api/tokenizer/character_substituter.rb
picky-4.23.0 lib/picky/api/tokenizer/character_substituter.rb