tr method from string : tr « String « Ruby






tr method from string


'LOWERCASE ALL VOWELS'.tr('AEIOU', 'aeiou')

 

Related examples in the same category

1.Translation from one set of characters to another