From: Roger Pack Date: 2008-09-27T02:03:00+09:00 Subject: Re: what is "dynamic constant assignment" >> I guess that the 'dynamic constant assignment' means that you can assing >> to a >> constant in a method. > > > And the work around is > def self.set(value) > const_set("AB". value) > end Or, if you aren't in a class method def set(value) self.class.const_set(:AB, value) # can use a symbol end Cheers. -=R -- Posted via http://www.ruby-forum.com/.