From: dblack@... Date: 2003-05-09T09:16:35+09:00 Subject: Re: Can a global be a constant? Hi -- On Fri, 9 May 2003, Jim Freeze wrote: > On Friday, 9 May 2003 at 8:57:15 +0900, dblack@superlink.net wrote: > > > You can use instance variables (of the object State) instead of class > > variables, and then State becomes: > > > > class State > > class << self > > attr_accessor :debug, :verbose > > end > > end > > Why does this not define the class method State.debug to > set the instance variable @debug? It does; it creates #debug and #debug= in State's singleton class, and those methods get/set State's instance variable @debug. > > (though this does not deal with the requirements you list later...) > > > > Is that requirements list even possible? Not sure... see [one of my] other post[s] with a question on that. David -- David Alan Black home: dblack@superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav