Module: Repokeeper::Utils
- Defined in:
- lib/repokeeper/utils.rb
Class Method Summary collapse
-
.edit_distance(str1, str2) ⇒ Object
calculates levinstein distance of two strings.
Class Method Details
.edit_distance(str1, str2) ⇒ Object
calculates levinstein distance of two strings
6 7 8 |
# File 'lib/repokeeper/utils.rb', line 6 def self.edit_distance(str1, str2) Levenshtein.distance(str1, str2) end |