From: Mark Hubbart Date: 2004-05-11T02:04:18+09:00 Subject: Re: RCR Suggestion: Binding#eval On May 10, 2004, at 3:13 AM, Bill Atkins wrote: > I propose that the following method be added to Ruby: > > class Binding > def eval str > Kernel.eval str, self > end > end > > This makes eval'ing code in a given binding more OO. So code like > > eval "myvar = 120", binding > > becomes: > > binding.eval "myvar" > > which is more in keeping with the general Ruby way, IMHO. put up an rcr for it and I'll vote in favor :) cheers, --Mark