From: Intransition Date: 2010-02-23T03:05:11+09:00 Subject: Re: Binding#eval issue On Feb 22, 12:54 pm, Walton Hoops wrote: > > But I'm not so sure, because there has to be a way to access the > > binding itself or what is the point? Perhaps Binding needs a special > > method, ie. #binding_eval, which would eval as if in the binding. > > You can just pass your binding to eval. See:http://ruby-doc.org/core/classes/Kernel.html#M005922 That's how the above works actually, Binding#eval is defined as: class Binding def eval(str) Kernel.eval(str, self) end end