Hello

While debugging my code I often reload a ruby source file after a small 
fix. This works great. However I have an issue with class variables. I 
sometimes don't want then to be reinitialized when I reload. One solution 
would be to use global variables created/initialized in some 
MyClass::initClass() class method called once only. Is there a better way ? 
Something like:

def MyClass
   if !reloading then
     @myClassVar = nil
   end
end

Thanks,

Jean-Hugues

-------------------------------------------------------------------------
Web:  http://hdl.handle.net/1030.37/1.1
Phone: +33 (0) 4 92 27 74 17