From: "Darryl L. Pierce" Date: 2012-02-21T05:35:10+09:00 Subject: Re: Accessing a local variable through a symbol On Mon, Feb 20, 2012 at 3:27 PM, Ralph Shnelvar wrote: > Let's say I have > >   def y >     a=42 >     x = some_kernel_function(:a)  # I'd like x to be 42 >   end > > Is there a way to get x to be 42? What, exactly, is it you're trying to do? What is "some_kernel_function"? Since a in the above is a local variable, why can't you just assign it directly? x = a Or are you trying to do something like access the most recent value processed or something like that? -- Darryl L. Pierce Visit the Infobahn Offramp: "Bury me next to my wife. Nothing too fancy..." - Ulysses S. Grant