ruby capitalize first character of sentence
a = "apples and oranges are two diffERent Fruits."
a.split.each{|i| i.capitalize!}.join(' ')
=> "Apples And Oranges Are Two Different Fruits."
3.75
4
“mICHAel”.capitalize
Thank you!
4
0
Are there any code examples left?
New code examples in category Other