Subject: Dynamic local vars
From: Vasyl Smirnov <vasyl.smirnov gmail.com>
Date: Fri, 7 Dec 2007 17:19:55 +0900
Hi,
I wonder if there is any way to create local variables dynamically,
for example, given
def foo
bar
puts x, y
end
is it possible for bar to somehow create and initialize x and y?
Binding doesn't seem to be modifiable..
Or am I asking too much? :)