Skip to content

Instantly share code, notes, and snippets.

@zackmdavis
Created February 28, 2014 19:39
Show Gist options
  • Save zackmdavis/9278229 to your computer and use it in GitHub Desktop.
Save zackmdavis/9278229 to your computer and use it in GitHub Desktop.
def underscores_to_hyphens(string)
string.gsub!('_', '-')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment