From: Rolando Abarca Date: 2007-10-19T23:58:52+09:00 Subject: Re: Eval alternative to execute string On Oct 19, 2007, at 11:45 AM, Koos Brandt wrote: > OK, that works and thanks a lot. > > But I actually still have the program in memory, ie string object. > I can > most certaily write it to a tempfile and do the above, but I would > have > like > system("ruby #{contents}") or system("irb #{contents}") > Tried both, and they just go into a long process! if you have the contents in a string, you could always open a piped shell: pipe = IO.popen("ruby", "w") pipe.write contents pipe.close regards, -- Rolando Abarca Phone: +56-9 97851962