Module: RuboCop::StringUtil
- Defined in:
- lib/rubocop/string_util.rb
Overview
This module provides approximate string matching methods.
Defined Under Namespace
Classes: Jaro, JaroWinkler
Class Method Summary collapse
Class Method Details
.similarity(string_a, string_b) ⇒ Object
8 9 10 |
# File 'lib/rubocop/string_util.rb', line 8 def similarity(string_a, string_b) JaroWinkler.distance(string_a.to_s, string_b.to_s) end |