Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/unidecode.rb
Instance Method Summary collapse
-
#to_ascii ⇒ Object
Returns string with its UTF-8 characters transliterated to ASCII ones.
Instance Method Details
#to_ascii ⇒ Object
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 |