Created
July 25, 2012 03:32
-
-
Save ananfang/3174208 to your computer and use it in GitHub Desktop.
Symbols in Ruby: Symbol as Key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1.8.* and under | |
player1 = { :name => 'ananfang' } | |
player2 = { :name => 'fatandy' } | |
# 1.9.* | |
player1 = { name: 'ananfang' } | |
player2 = { name: 'fatandy' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment