Created
January 1, 2011 22:09
-
-
Save bryfox/762048 to your computer and use it in GitHub Desktop.
Title case snippet taken from http://snippets.dzone.com/posts/show/4702
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
'some string here'.gsub(/\b\w/){$&.upcase} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment