Skip to content

Instantly share code, notes, and snippets.

@nikushi
Created October 31, 2012 20:55
Show Gist options
  • Save nikushi/3989804 to your computer and use it in GitHub Desktop.
Save nikushi/3989804 to your computer and use it in GitHub Desktop.
rename Hash's key name
h = { "old" => 1 }
h["new"] = h.delete("old")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment