------ art_176465_652611.1156785101553 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/28/06, Logan Capaldo <logancapaldo / gmail.com> wrote: > > > On Aug 27, 2006, at 9:54 PM, Timothy Hunter wrote: > > > Logan Capaldo wrote: > >> > >> #constants is getting the constants directly. (What you want is > >> the values of the constants.) AFAIK there is no built in way to do > >> this. The code isn't terribly long though anyway is it? > >> > >> class Module > >> def constant_values > >> constants.map { |constant| const_get(constant) } > >> end > >> end > >> > >> > > > > ri says that Module#constants returns an array of constant names. > > For some reason this reminds me of this bit of _Alice Through the > > Looking Glass_, where Alice is talking to the Knight, > > > > > > [snip brilliant through the looking glass quote] > > To which I reply: > 'When I use a word,' Humpty Dumpty said in rather a scornful tone, > 'it means just what I choose it to mean -- neither more nor less.' > > 'The question is,' said Alice, 'whether you can make words mean so > many different things.' > 'The question is,' said Humpty Dumpty, 'which is to be master -- > that's all.' > > > > [snip another brilliant Lewis Carrol snippet] 'Would you tell me, please, which way I ought to go from here?'' That depends a good deal on where you want to get to, ''I don't know where. . .'* '*Then it doesn't matter which way you go,' Can you forgive us OP? Robert ------ art_176465_652611.1156785101553--