Created
June 13, 2012 19:42
-
-
Save austinwang/2926021 to your computer and use it in GitHub Desktop.
interesting ruby problem
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
# why does this not work? It throws an unexpected association error. | |
# The puts xxxxxx.class works with every other variable type tried, but not this one. | |
# further strangeness, in terminal if you remove the puts, it will indicate that it is indeed a Hash | |
puts {:key => "value"}.class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment