From: Ryan Davis Date: 2012-06-26T05:48:59+09:00 Subject: Re: Symbols and Strings. On Jun 25, 2012, at 08:14 , Michel Demazure wrote: > 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' ? You've already gotten a good answer (Symbol#desc) but I wanted to add some clarification on how your example above is seen by ruby: 3431 % pwd /Users/ryan/Work/p4/zss/src/ruby_parser/dev/ 3432 % rake debug R="a.order(:name.desc)" s(:call, s(:call, nil, :a), :order, s(:call, s(:lit, :name), :desc)) -------------------------------