/ Published in: Ruby

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
str = "how are you? are you feeling good?" puts str.split(/\s+/).each{ |word| word.capitalize! }.join(' ')
Comments
