Sha256: 2f3c592ab84a25be7fa8cd79158964847faea34faf76222f983d1ce3868911a7

Contents?: true

Size: 361 Bytes

Versions: 4

Compression:

Stored size: 361 Bytes

Contents

require 'phonetic/refined_soundex'

class String
  # Refined Soundex value of string.
  # @example
  #    'Caren'.refined_soundex   # => 'C30908'
  #    'Hayers'.refined_soundex  # => 'H093'
  #    'Lambard'.refined_soundex # => 'L7081096'
  def refined_soundex(options = { trim: true })
    Phonetic::RefinedSoundex.encode(self, options)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phonetic-1.2.0 lib/phonetic/core_ext/string/refined_soundex.rb
phonetic-1.1.0 lib/phonetic/core_ext/string/refined_soundex.rb
phonetic-1.0.1 lib/phonetic/core_ext/string/refined_soundex.rb
phonetic-1.0.0 lib/phonetic/core_ext/string/refined_soundex.rb