Translate and strip : tr_s « String « Ruby






Translate and strip


puts "bead".tr_s("aeiou", " ")     # => "b d": convert and remove duplicates

 

Related examples in the same category