Class: FuzzyStringMatch::JaroWinklerInline

Inherits:
Object
  • Object
show all
Defined in:
lib/fuzzystringmatch/inline/jarowinkler.rb

Instance Method Summary collapse

Instance Method Details

#getDistance(s1, s2) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/fuzzystringmatch/inline/jarowinkler.rb', line 25

def getDistance(s1,s2)
  result = getDistanceInternal(s1,s2)
  if result.nan?
    raise NoMemoryError.new( "failed to allocate memory. string argument s1 or s2 is too large." )
  end
  return result
end

#pure?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/fuzzystringmatch/inline/jarowinkler.rb', line 21

def pure?
  false
end