From: Steve Litt Date: 2005-12-31T22:37:10+09:00 Subject: Re: Method for turning strings into code On Saturday 31 December 2005 06:07 am, Timothy Hunter wrote: > 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. Where do I find out more about Ruby's dynamic programming facilities? SteveT Steve Litt http://www.troubleshooters.com slitt@troubleshooters.com