module RussianMetaphone::Filter::LastnameEnding

Constants

REPLACEMENTS

Public Class Methods

filter(string, options = {}) click to toggle source
# File lib/russian_metaphone/filter/lastname_ending.rb, line 22
def filter(string, options = {})
  REPLACEMENTS.each_pair do |regexp, substitution|
    string.gsub!(regexp, substitution)
  end
  string
end

Private Instance Methods

filter(string, options = {}) click to toggle source
# File lib/russian_metaphone/filter/lastname_ending.rb, line 22
def filter(string, options = {})
  REPLACEMENTS.each_pair do |regexp, substitution|
    string.gsub!(regexp, substitution)
  end
  string
end