Skip to content

Instantly share code, notes, and snippets.

@tanelsuurhans
Created March 8, 2013 17:27
Show Gist options
  • Save tanelsuurhans/5118196 to your computer and use it in GitHub Desktop.
Save tanelsuurhans/5118196 to your computer and use it in GitHub Desktop.
foo.inject({}) do |hash, bar|
hash.store(a, b)
hash
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment