From: Walton Hoops Date: 2010-02-23T02:54:56+09:00 Subject: Re: Binding#eval issue On 2/22/2010 10:48 AM, Intransition wrote: > In that case there would be no way to define these manually. And I > would need to request that Binding support __LINE__ and __FILE__ in > core. > > 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