How to convert a string to lowercase in Ruby
In this tutorial, we are going to learn about how to convert an entire string to lowercase in Ruby.
Using downcase method
To convert a string to lowercase, we can use the built-in downcase
method in ruby.
Here is an example, that converts the whole string CAR IS RED
to lowercase.
"CAR IS RED".downcase #=> "car is red"