From: Robert Dober Date: 2007-07-18T04:57:57+09:00 Subject: Re: possibly bulletproof eval() On 7/17/07, Giles Bowkett wrote: > > image_file.send "#{suffix}=", file.read Well, good, but as I do not know AR I might have missed out on the AR specific solutions, maybe you should check out Brad's last post. > > That's probably the way I should do it actually. I always forget about > send for some reason. > > I had to put tons of comments like "warning do not ever copy/paste > this!" in the code near the eval. Using send would get me around that. That for sure is a bad sign ;). Robert > > -- I always knew that one day Smalltalk would replace Java. I just didn't know it would be called Ruby -- Kent Beck