Class String
In: lib/acts_as_suggest.rb
Parent: Object


distance   similar?  

Public Instance methods

Levenshtein distance, used to determine the minimum number of changes needed to modify a string into another one. It uses the Text gem for its UTF-8 enabled comparisons.

Determines if two strings are similar based on a provided treshold.