From: daz Date: 2004-02-17T15:59:53+09:00 Subject: Re: accessing constants from class methods "Joel VanderWerf" wrote: > daz wrote: > > ## The next test made me wonder if I can believe anything, any more. > > > > for i in 0..1 > > puts defined? Z > > const_set Z, 1 > > puts defined? Z > > puts '-' * 10 > > end > > The first argument to #const_set should be a symbol or string, and the > receiver of #const_set should be a module. > > [...] > > Keep believing... > Faith restored, once again :) Cheers, daz