Skip to content

Instantly share code, notes, and snippets.

@rgarner
Created August 4, 2015 14:07
Show Gist options
  • Save rgarner/96a630b13a4a4fe64276 to your computer and use it in GitHub Desktop.
Save rgarner/96a630b13a4a4fe64276 to your computer and use it in GitHub Desktop.
New symbol behaviour in Ruby 2.2
➜ ~ rbenv shell 2.1.5
➜ ~ ruby -e '{ "hello": "world" }'
-e:1: syntax error, unexpected ':', expecting =>
{ "hello": "world" }
^
-e:1: syntax error, unexpected '}', expecting end-of-input
➜ ~ rbenv shell 2.2.0
➜ ~ ruby -e '{ "hello": "world" }'
➜ ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment