Tim Hunter
12/30/2005 3:51:00 PM
Steve Litt wrote:
> Hi all,
>
> What is the Ruby technique for turning strings into executable code?
>
Via one of the various forms of eval. However, using eval on arbitrary
strings is insecure, so generally it's considered bad form. There's even
a slogan: "Eval is evil." The preferred technique is to build a solution
using Ruby's dynamic programming facilities.