From: Gavin Kistner Date: 2005-08-19T22:35:29+09:00 Subject: Re: Redefining Kernel Methods on the Fly --Apple-Mail-2-122436486 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Aug 19, 2005, at 12:24 AM, nobuyoshi nakada wrote: > At Fri, 19 Aug 2005 14:50:38 +0900, > Gavin Kistner wrote in [ruby-talk:152854]: > >> def run_test1 >> Kernel.instance_eval{ > > Use module_eval instead of instance_eval. Er, yup, that did the trick! :) Silly I didn't think of it. Any idea why the last item (using eval with the binding of Kernel) manages to change the puts, but cannot change it back? --Apple-Mail-2-122436486--