Skip to content

Instantly share code, notes, and snippets.

@bryfox
Created January 1, 2011 22:09
Show Gist options
  • Save bryfox/762048 to your computer and use it in GitHub Desktop.
Save bryfox/762048 to your computer and use it in GitHub Desktop.
Title case snippet taken from http://snippets.dzone.com/posts/show/4702
'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