Module: Lyricfy::URIHelper
- Included in:
- MetroLyrics, Wikia
- Defined in:
- lib/lyricfy/uri_helper.rb
Instance Method Summary collapse
Instance Method Details
#tilde_to_vocal(string) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/lyricfy/uri_helper.rb', line 5 def tilde_to_vocal(string) string.split('').map do |c| case c when "á" then "a" when "é" then "e" when "í" then "i" when "ó" then "o" when "ú" then "u" else c end end.join('') end |