From: Issac Trotts Date: 2001-12-14T07:05:17+09:00 Subject: [ruby-talk:28462] Re: func_eval? That's a good thing to know, and it almost answers my question. But I still would like to have a way to get the binding of the function that called whichever function is currently executing. Issac > -----Original Message----- > From: David Alan Black [mailto:dblack@candle.superlink.net] > Sent: Thursday, December 13, 2001 3:00 PM > To: ruby-talk@ruby-lang.org > Subject: [ruby-talk:28461] Re: func_eval? > > > Whoops -- > > On Fri, 14 Dec 2001, David Alan Black wrote: > > > You can pass bindings around: > > > > def thing(s,b) > > eval s, b > > end > > > > a = 123 > > p thing(a, binding) # => 123 > > Make that: > > p thing("a", binding) > > David > > -- > David Alan Black > home: dblack@candle.superlink.net > work: blackdav@shu.edu > Web: http://pirate.shu.edu/~blackdav >