Method: Stringex::Unidecoder.decode

Defined in:
lib/stringex/unidecoder.rb

.decode(string) ⇒ Object

Returns string with its UTF-8 characters transliterated to ASCII ones

You’re probably better off just using the added String#to_ascii



17
18
19
# File 'lib/stringex/unidecoder.rb', line 17

def decode(string)
  string.chars.map{|char| decoded(char)}.join
end