On Friday,  9 May 2003 at  9:16:35 +0900, dblack / superlink.net wrote:
> 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.
 
So, this is something I don't understand. State is never instantiated.
How does it have an instance variable?

-- 
Jim Freeze
----------
"Every time I think I know where it's at, they move it."