Call upcase function from string class on a sentence : upcase « String « Ruby






Call upcase function from string class on a sentence


puts "This is a test".upcase

 








Related examples in the same category

1.upcase does not change the original string
2.Call upcase function from string on a word
3.upcase or upcase!
4.Change string to upper case in place