Module: LuckySneaks::StringExtensions
- Defined in:
- lib/lucky_sneaks/unidecoder.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"
44 45 46 |
# File 'lib/lucky_sneaks/unidecoder.rb', line 44 def to_ascii LuckySneaks::Unidecoder::decode(self) end |