Hi all,

How can I run ruby code from my ruby program? Let's say I have a program
with a text box. In that text box user writes a ruby function. I
want the program to call that function in such way that this function
would have access to the classes and variables in the main program.

How can this be done? I imagine that since Ruby is interpreted
dynamically adding code shouldn't be much of a problem. But then I just
started learning Ruby and have no idea how this could work..

Thanks for your replies.

-- 
Posted via http://www.ruby-forum.com/.