Call swapcase function from string class : swapcase « String « Ruby






Call swapcase function from string class


puts "Test".swapcase 

 

Related examples in the same category

1.switch an English alphabet list that starts with lowercase first to a string that starts with uppercase first: