Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save nbfritz/4285845 to your computer and use it in GitHub Desktop.
Ruby Hash Post - Part 1: hash creation examples
some_hash = { :some_key => 'a value' } # standard syntax
other_hash = { some_key: 'a value' } # Ruby 1.9 syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment