Skip to content

Instantly share code, notes, and snippets.

@nbfritz
Created December 14, 2012 14:39
Show Gist options
  • Select an option

  • Save nbfritz/4285882 to your computer and use it in GitHub Desktop.

Select an option

Save nbfritz/4285882 to your computer and use it in GitHub Desktop.
Ruby Hash Post - Part 1: empty hash creation
empty_hash = {} # using the hash literal syntax
empty_hash = Hash.new # using the Hash class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment