"Florian Gross" <flgr / ccan.de> wrote
> You need the binding of the caller. Then you can just do eval("#{symbol}
> = value", context) where context is the binding.
> ...
> ...<stuff i won't pretend to understand but will attempt to use!>
> ...
> It would also be interesting to know what you are using this for.

I'm exploring some domain-specific language capabilities in Ruby. One of the
things I want to do appears doable by generating local variables and/or
methods in the context of the caller.