From: Robert Klemme Date: 2011-05-04T19:58:18+09:00 Subject: Re: Run time programming On Wed, May 4, 2011 at 12:39 PM, Karolis Juodele wrote: > 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.. $ ri eval Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/