Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/sixarm_ruby_unaccent/string.rb
Overview
String extensions.
Instance Method Summary collapse
-
#unaccent ⇒ String
Replace a string’s accented characters with unaccented characters.
Instance Method Details
#unaccent ⇒ String
Replace a string’s accented characters with unaccented characters.
16 17 18 |
# File 'lib/sixarm_ruby_unaccent/string.rb', line 16 def unaccent split(//u).map {|c| ACCENTMAP[c] || c }.join("") end |