From: John Date: 2002-07-18T01:28:14+09:00 Subject: Re: which class variable is set here ? "Fritz Heinrichmeyer" wrote in message news:86fzyic0nh.fsf@jfh00.fernuni-hagen.de... > > Here is part of a code snippet posted earlier. > > require 'postgres' > module Apache > class RubyRun > @@pg_conn_handler = nil > > def RubyRun.pg_conn > if !@@pg_conn_handler > > ..... > > > I believe that > > @@pg_conn_handler = nil > > is not set in the context of a method so there will be set an object > variable from .. which class? > > Greetings > -- > Fritz Heinrichmeyer mailto:fritz.heinrichmeyer@fernuni-hagen.de > FernUniversitaet Hagen, LG ES, 58084 Hagen (Germany) > tel:+49 2331/987-1166 fax:987-355 http://www-es.fernuni-hagen.de/~jfh > After reading through the Pickaxe book I seem to remember that you can hook on a variable being set. Could that technique be used here to determine your answer? If so, it might provide a good FAQ entry. John.