From: Yusuke Endoh Date: 2010-04-16T22:40:50+09:00 Subject: [ruby-core:29561] [Bug #2161] Kernel.eval ignores binding in 1.9 Issue #2161 has been updated by Yusuke Endoh. Hi, Rdoc of Kernel#binding says: Returns a +Binding+ object, describing the variable and method bindings at the point of call. In this case, "the point of call" is top level. So I think 1.9 is correct. I don't know it is 1.8's bug or spec change since 1.9. So I move this ticket to 1.8 subproject. As wanabe said, you can use instance_eval if you want 1.8's current behavior: eval "self", obj.instance_eval { binding } -- Yusuke Endoh ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2161 ---------------------------------------- http://redmine.ruby-lang.org