From: Stu Date: 2011-05-06T05:30:19+09:00 Subject: Re: Run time programming eval though is the root method it might be safer to use one of the more focused wrapper methods such as class_eval, instance_eval and define_method. ~Stu On Thu, May 5, 2011 at 10:43 AM, Brian Candler wrote: > Robert K. wrote in post #996572: >> $ ri eval > > And you might also want to think about who is entering that code and > what it does: cautionary tale at > http://www.ruby-doc.org/docs/ProgrammingRuby/html/taint.html > > So, re-implementing tryruby.org is not as simple as you might think. > Look for the ruby sandbox gem. > > If only fully trusted users are entering data into this text box, then > it's not a problem. > > -- > Posted via http://www.ruby-forum.com/. > >