Skip to content

Instantly share code, notes, and snippets.

@neilmiddleton
Created November 27, 2013 19:31
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 neilmiddleton/7681716 to your computer and use it in GitHub Desktop.
Save neilmiddleton/7681716 to your computer and use it in GitHub Desktop.
my_hash = {}
my_hash[:one] = 'foo'
my_hash[:two] = 'bar'
my_hash[:three] = 'baz'
my_hash.keys.each{|k| puts k}
my_hash = {}
my_hash[:three] = 'baz'
my_hash[:two] = 'bar'
my_hash[:one] = 'foo'
my_hash.keys.each{|k| puts k}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment