Do I need to have more lines of code just to get each word, in a string, to be capitalize using ruby?
h = "hello world and good morning"
h.capitalize #=> Hello world and good morning
I need all words be capitalized. How? Nothing has been mentioned here.
Do I need a messy code to extract each word, using regex, convert to capitalize then put back into string? That sounds messy. Is there a simple method for this?