Check out example codes for "uruby to lower case". It will help you in understanding the concepts better.

Code Example 1

name = 'Foo'
puts name           # Ruby
puts name.downcase  # ruby
puts name.upcase    # RUBY
puts name           # Ruby

Learn ReactJs, React Native from akashmittal.com