Skip to content

Instantly share code, notes, and snippets.

@austinwang
Created June 13, 2012 19:42
Show Gist options
  • Save austinwang/2926021 to your computer and use it in GitHub Desktop.
Save austinwang/2926021 to your computer and use it in GitHub Desktop.
interesting ruby problem
# 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