Sha256: b8dccd645225f3b7bc7af540ab1b7660ca9880bcff1a25a75d7a48e52c2b6004
Contents?: true
Size: 287 Bytes
Versions: 6832
Compression:
Stored size: 287 Bytes
Contents
# frozen_string_literal: true require 'jaro_winkler' module RuboCop # This module provides approximate string matching methods. module StringUtil module_function def similarity(string_a, string_b) JaroWinkler.distance(string_a.to_s, string_b.to_s) end end end
Version data entries
6,832 entries across 6,807 versions & 27 rubygems