Skip to content

Instantly share code, notes, and snippets.

@hosiawak
Created August 14, 2009 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hosiawak/167754 to your computer and use it in GitHub Desktop.
Save hosiawak/167754 to your computer and use it in GitHub Desktop.
r = {}
(h1.keys | h2.keys).each {|k| r[k] = h1[k].to_i + h2[k].to_i}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment