you are in: codestackercodes [RSS]ruby string proper case

ruby string proper case Delicious Email

show/hide lines
   1  test = "hello man! how are you?" 
   2  puts test.split(/\s+/).each{ |word| word.capitalize! }.join(' ')
created by leozera — 14 December 2008 — get a short url — tags: ruby string embed

Comments



We dont send spam :)

If checked, it's highlights your comment
simple_captcha.jpg
Are you a human? Type the code from the image