Method: RuboCop::StringUtil::JaroWinkler#initialize

Defined in:
lib/rubocop/string_util.rb

#initialize(a, b, boost_threshold = nil, scaling_factor = nil) ⇒ JaroWinkler

Returns a new instance of JaroWinkler.



114
115
116
117
118
# File 'lib/rubocop/string_util.rb', line 114

def initialize(a, b, boost_threshold = nil, scaling_factor = nil)
  super(a, b)
  @boost_threshold = boost_threshold || DEFAULT_BOOST_THRESHOLD
  @scaling_factor = scaling_factor || DEFAULT_SCALING_FACTOR
end