From: Alex Wayne Date: 2008-04-04T13:27:35+09:00 Subject: Re: Using a string as executable code Paul McMahon wrote: > Well, you could do > > result = "name.upcase".split(".").inject(person) do |object, method| > object.send(method) > end > > but storing code in a database smells. Perhaps it would be better to > find another approach that avoids storing the code in the first place Or eval "object.#{object.stored_code}" But really. This sounds like a horrendously bad idea. -- Posted via http://www.ruby-forum.com/.