Sha256: c67b20cf5cbf7e4216c6ff7d48291c1d3a065dc7bb1fead2bc867db7622dc85c

Contents?: true

Size: 220 Bytes

Versions: 5

Compression:

Stored size: 220 Bytes

Contents

class FuzzyMatch
  class Rule
    # A stop word is ignored
    class StopWord < Rule
      # Destructively remove stop words from the string
      def apply!(str)
        str.gsub! regexp, ''
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fuzzy_match-1.5.0 lib/fuzzy_match/rule/stop_word.rb
fuzzy_match-1.4.1 lib/fuzzy_match/rule/stop_word.rb
fuzzy_match-1.4.0 lib/fuzzy_match/rule/stop_word.rb
fuzzy_match-1.3.3 lib/fuzzy_match/rule/stop_word.rb
fuzzy_match-1.3.2 lib/fuzzy_match/rule/stop_word.rb