<< EOS | Index | LoadPath >>
s = "print 123" eval(s)
returns
123
Eval runs Ruby Code in Ruby code.
Also be sure to use call more then eval because of the performance considerations.
http://www.ruby-doc.org/docs/ProgrammingRuby/html/ospace.html#UC