Answers for "ruby uppercase first letter of each word"

2

upcase first letters in ruby

“mICHAel”.capitalize
Posted by: Guest on November-25-2020
1

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."
Posted by: Guest on August-13-2021

Code answers related to "ruby uppercase first letter of each word"

Browse Popular Code Answers by Language