Method: Faker::Char.prepare

Defined in:
lib/helpers/char.rb

.prepare(string) ⇒ Object



5
6
7
8
9
# File 'lib/helpers/char.rb', line 5

def self.prepare(string)
  result = romanize_cyrillic string
  result = fix_umlauts result
  result.gsub(/[^\w-]/, '').downcase
end