hi
I have this code:
Shoes.app do
data = [1,2,3,4] # could be also more
data.each { |i|
edit_line ("foo"){ puts i}
}
end
when the value (foo) change in the edit_line field, I see in the terminal 1,2,3 or 4. But I need the value (.txt) from each edit_line field. How can I reference to it? The problem is that data is dynamic and can have n entries.
In php there is something like $$var is there something in ruby? maybe this could help.