Class: Iqvoc::Origin::Filters::UmlautReplacer
- Inherits:
-
GenericFilter
- Object
- GenericFilter
- Iqvoc::Origin::Filters::UmlautReplacer
- Defined in:
- lib/iqvoc/origin.rb
Instance Method Summary collapse
Methods inherited from GenericFilter
Instance Method Details
#call(obj, str) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/iqvoc/origin.rb', line 53 def call(obj, str) str = str.gsub(/Ö/, 'Oe'). gsub(/Ä/, 'Ae'). gsub(/Ü/, 'Ue'). gsub(/ö/, 'oe'). gsub(/ä/, 'ae'). gsub(/ü/, 'ue'). gsub(/ß/, 'ss') run(obj, str) end |