method

levenshtein_distance

rails latest stable - Class: Rails::Command::Behavior

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.2.3) is shown here.

levenshtein_distance(str1, str2)
public

This code is based directly on the Text gem implementation. Copyright © 2006-2013 Paul Battley, Michael Neumann, Tim Fletcher.

Returns a value representing the “cost” of transforming str1 into str2.