Module: FuzzyString
- Defined in:
- lib/fuzzy_string.rb,
lib/fuzzy_string/version.rb
Defined Under Namespace
Classes: AdjustedScore, Levenshtein
Constant Summary collapse
- VERSION =
"1.1.0"
Instance Method Summary collapse
Instance Method Details
#-(other) ⇒ Object
7 |
# File 'lib/fuzzy_string.rb', line 7 def -(other) Levenshtein.distance(self,other) end |
#^(other) ⇒ Object
6 |
# File 'lib/fuzzy_string.rb', line 6 def ^(other) AdjustedScore.rank(self,other) end |