Skip to content

Instantly share code, notes, and snippets.

@langsharpe
Created March 19, 2011 06:16
Show Gist options
  • Save langsharpe/877275 to your computer and use it in GitHub Desktop.
Save langsharpe/877275 to your computer and use it in GitHub Desktop.
a = Hash.new
a['key1'] = 'value1'
a['key2'] = 'value2'
puts a['key5']
lang@virtualbox1:~/$ ruby hash.rb
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment