On Dec 7, 11:35 am, MonkeeSage <MonkeeS... / gmail.com> wrote: > On Dec 7, 2:19 am, Vasyl Smirnov <vasyl.smir... / gmail.com> wrote: > > def bar > x = 10 > y = 20 > binding > end > > def foo > eval("puts x, y", bar) > end > This would do, but I'd like to have the content of foo as simple as possible (that's actually the reason for the question).