Skip to content

Instantly share code, notes, and snippets.

@cotto
Created July 23, 2012 19:25
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 cotto/3165643 to your computer and use it in GitHub Desktop.
Save cotto/3165643 to your computer and use it in GitHub Desktop.
so, this seems to work
cotto@quill:/usr/src/ruby-exp 1 $ cat hash.rb
map = {}
map[1234] = "value of 1234"
x = map[1234];
puts x
cotto@quill:/usr/src/ruby-exp 1 $ ruby hash.rb
value of 1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment