lib/picky/character_substituters/west_european.rb in picky-4.12.2 vs lib/picky/character_substituters/west_european.rb in picky-4.12.3
- old
+ new
@@ -8,16 +8,12 @@
# Substitutes Umlauts like
# ä, ö, ü => ae, oe, ue.
# (and more, see specs)
#
- class WestEuropean
+ class WestEuropean < Base
- def initialize
- @chars = ActiveSupport::Multibyte.proxy_class
- end
-
# Substitutes occurrences of certain characters
# (like Umlauts) with ASCII representations of them.
#
# Examples:
# ä -> ae
@@ -41,13 +37,9 @@
# Get rid of ecutes, graves etc.
#
trans.unpack('U*').select { |cp|
cp < 0x0300 || cp > 0x035F
}.pack 'U*'
- end
-
- def to_s
- self.class.name
end
end
end
\ No newline at end of file