From: Alex Chaffee Date: 2012-06-26T00:39:53+09:00 Subject: Re: Symbols and Strings. As I understand it, interpolation is not eval, so you answered your own question (or at least included it). :"#{name}.desc" ymmv since my iPhone doesn't run ruby :-( On Jun 25, 2012, at 8:14 AM, Michel Demazure wrote: > Ryan Davis wrote in post #1065463: >> On Jun 20, 2012, at 15:25 , Hal Fulton wrote: >> >>> (name.to_s << "=").to_sym >> >> :"#{name}=" > > By the way : > > In Sequel, you have to write something like '.order(:name.desc)' to ask > for a reverse ordering of a field. How, given the symbol :name, do you > build the symbol :name.desc, without some sort of 'eval' ? > > _md > > -- > Posted via http://www.ruby-forum.com/. >