Skip to content

Instantly share code, notes, and snippets.

@nikz
Created December 4, 2008 04:30
Show Gist options
  • Save nikz/31843 to your computer and use it in GitHub Desktop.
Save nikz/31843 to your computer and use it in GitHub Desktop.
class String
def jammize
gsub(/\s/, '').underscore
end
end
"My Whatevers".jammize #=> "my_whatevers"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment