fuzzy_match 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +0,0 @@
1
- class FuzzyMatch
2
- # A stop word is ignored
3
- class StopWord
4
- attr_reader :regexp
5
-
6
- def initialize(regexp_or_str)
7
- @regexp = regexp_or_str.to_regexp
8
- end
9
-
10
- # Destructively remove stop words from the string
11
- def apply!(str)
12
- str.gsub! regexp, ''
13
- end
14
-
15
- def inspect
16
- "#<FuzzyMatch::StopWord regexp=#{regexp.inspect}>"
17
- end
18
- end
19
- end