Module: Algorithms::String

Defined in:
ext/algorithms/string/string.c

Class Method Summary collapse

Class Method Details

.levenshtein_dist(str1, str2) ⇒ Object



56
57
58
# File 'ext/algorithms/string/string.c', line 56

static VALUE lev_dist(VALUE self, VALUE str1, VALUE str2) {
	return LONG2FIX(levenshtein_distance( str1, str2 ));
}