From: 7stud -- Date: 2008-02-18T19:01:14+09:00 Subject: Re: how to implement class constants? ruud wrote: > hi list, > > what construct do I have to use in Ruby to create class constants (so > no instance necessary to use it)? > > thanks, Ruud This seems to work: class Dog Color = 'brown' def Dog.Color Color end end puts Dog.Color -- Posted via http://www.ruby-forum.com/.