Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/unidecode.rb

Instance Method Summary collapse

Instance Method Details

#to_asciiObject

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

"⠋⠗⠁⠝⠉⠑".to_ascii #=> "braille"


42
43
44
# File 'lib/unidecode.rb', line 42

def to_ascii
  Unidecoder::decode(self)
end