lib/fuzzy_match/wrapper.rb in fuzzy_match-1.1.1 vs lib/fuzzy_match/wrapper.rb in fuzzy_match-1.2.1
- old
+ new
@@ -56,12 +56,12 @@
def similarity(other)
Similarity.new self, other
end
def variants
- @variants ||= fuzzy_match.tighteners.inject([ render ]) do |memo, tightener|
- if tightener.apply? render
- memo.push tightener.apply(render)
+ @variants ||= fuzzy_match.normalizers.inject([ render ]) do |memo, normalizer|
+ if normalizer.apply? render
+ memo.push normalizer.apply(render)
end
memo
end.uniq
end
end