From: "John W. Long" Date: 2006-09-11T06:07:25+09:00 Subject: Re: patching strings together to make a variable Sy Ali wrote: > The imaginary code would be: > > ab = "pass" > puts ("a" + "b").to_variable I've occasionally used something like this with methods. For instance, I recently wrote an Exporter that worked something like this: class Exporter def export(format=:yaml) method = "export_#{format}" if respond_to?(method) send(method) else raise "invalid format" end end private def export_yaml ... end def export_xml ... end end Not sure what you are doing, but perhaps a method oriented solution would work better. -- John Long http://wiseheartdesign.com http://radiantcms.org