by @saigowthamr

How to convert a string to lowercase in Ruby

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

To convert a string to lowercase we can use the downcase in ruby.

Here is an example that converts the string CAR IS RED to lowercase.

"CAR IS RED".downcase    #=> "car is red"

Best Web Development courses