On Sat, 4 Nov 2006, Robert Dober wrote:

> Hi all
>
> Recently we had a thread where we talked about redefining a class.
> The usefuleness of that did not come into my mind before.
>
> Does somebody know a way to redefine a class (without the "already
> initialized constant <ClassName>" warning)?
> And if there is none, which I suspect, might it not be nice to have one?


   c = Class.new{
     def initialize
       @x = 'foo'
     end
   }
   o = c.new

   c = Class.new{
     def initialize
       @x = 'bar'
     end
   }
   o = c.new

;-)


-a
-- 
my religion is very simple.  my religion is kindness. -- the dalai lama