Module: Levenshtein
- Extended by:
- FFI::Library
- Defined in:
- lib/levenshtein.rb
Class Method Summary collapse
-
.distance(str1, str2) ⇒ Object
Safe version of distance, checks that arguments are really strings.
Class Method Details
.distance(str1, str2) ⇒ Object
Safe version of distance, checks that arguments are really strings.
13 14 15 16 17 |
# File 'lib/levenshtein.rb', line 13 def distance(str1, str2) validate(str1) validate(str2) ffi_distance(str1, str2) end |