by @saigowthamr

How to convert a string to uppercase in Ruby

Home » ruby » How to convert a string to uppercase in Ruby

To convert a string to uppercase we can use the upcase in ruby.

Here is an example that converts the string car is blue to uppercase.

"car is blue".upcase    #=> "CAR IS BLUE"