Question : upcase first letters in ruby
Answered by :
“mICHAel”.capitalize
Source : http://lesseverything.com/blog/how-to-convert-a-string-to-upper-or-lower-case-in-ruby/ | Last Update : Wed, 02 Dec 20
Question : ruby capitalize first character of sentence
Answered by : fancy-flamingo-56fvuchbodic
a = "apples and oranges are two diffERent Fruits."
a.split.each{|i| i.capitalize!}.join(' ')
=> "Apples And Oranges Are Two Different Fruits."
Source : | Last Update : Fri, 20 Aug 21