fuzzy_match 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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