Skip to content

Instantly share code, notes, and snippets.

@perspectivezoom
Created June 13, 2012 22:54
Show Gist options
  • Save perspectivezoom/2927025 to your computer and use it in GitHub Desktop.
Save perspectivezoom/2927025 to your computer and use it in GitHub Desktop.
def title_case(str)
str.split.map{ |el| el.capitalize }.join(" ")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment