Skip to content

Instantly share code, notes, and snippets.

@banister
Created May 19, 2011 04:06
Show Gist options
  • Save banister/980165 to your computer and use it in GitHub Desktop.
Save banister/980165 to your computer and use it in GitHub Desktop.
irb quirk in 1.9.2:
o = Object.new
def o.blah
eval("T = 10")
end
o
T #=> 10 (in IRB)
outside IRB results in NameError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment