Skip to content

Instantly share code, notes, and snippets.

@chrisseaton
Created November 29, 2014 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisseaton/c9e11e36b0c317b43f52 to your computer and use it in GitHub Desktop.
Save chrisseaton/c9e11e36b0c317b43f52 to your computer and use it in GitHub Desktop.
chrisseaton@Chriss-MacBook-Pro:~/Documents/oracle/jruby [master!] $ ruby -e '14.instance_eval { p @foo = 14 }'
-e:1:in `block in <main>': can't modify frozen Fixnum (RuntimeError)
from -e:1:in `instance_eval'
from -e:1:in `<main>'
chrisseaton@Chriss-MacBook-Pro:~/Documents/oracle/jruby [master!] $ bin/jruby -e '14.instance_eval { p @foo = 14 }'
14
chrisseaton@Chriss-MacBook-Pro:~/Documents/oracle/jruby [master!] $ ~/.rbenv/versions/jruby-1.7.16/bin/ruby -e '14.instance_eval { p @foo = 14 }'
14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment