Created
July 17, 2013 16:28
-
-
Save chaserx/6022168 to your computer and use it in GitHub Desktop.
Name Capitalization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I <3 Ruby | |
"chase southard".split.map {|n| n.capitalize}.join(' ') | |
#=> "Chase Southard" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's probably a smarter way to do this.