From: Charles Oliver Nutter Date: 2009-01-31T06:13:18+09:00 Subject: Re: binding in ruby1.9 Tim Pease wrote: > Okay, that explanation makes sense. My new implementation (following > along with the Kernel docs) > > > cat a.rb > obj = Object.new > class << obj > attr_accessor :foo > def get_binding() binding; end > end > obj.foo = 'the foo method' > eval "puts foo", obj.get_binding > > > ruby1.9 a.rb > the foo method Even better! - Charlie