Skip to content

Instantly share code, notes, and snippets.

@alexdesi
Created September 6, 2012 13:45
Show Gist options
  • Save alexdesi/3656399 to your computer and use it in GitHub Desktop.
Save alexdesi/3656399 to your computer and use it in GitHub Desktop.
Simple way to rename a key in a Hask
h = {:a => 1, :b => 2 }
h[:c] = row.delete(:a).last
>> put h
>> {:c => 1, :b => 2 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment