Sha256: be52a583f783040431ee718edfae991ebf5f60444ce2cce6d0dfa7dbcd98c7f0

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

module AegisNet
  module StringNormalizr

    def self.included(base)
      base.send(:include, InstanceMethods)
    end


    module InstanceMethods
      def normalize
        self.strip.gsub('ä', 'ae').gsub('ö', 'oe').gsub('ü', 'ue').gsub('Ä', 'Ae').gsub('Ö', 'Oe').gsub('Ü', 'Ue').gsub("ß", "ss")
      end
    end

  end
end

class String
  include AegisNet::StringNormalizr
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
string_normalizr-0.1 lib/string_normalizr.rb