On Sun, 16 Sep 2001, Avi Bryant wrote:

> If you change
>
>   class Foo < Bar
>     ...
>   end
>
> to
>
>   Foo = Class.new(Bar)
>   class Foo
>    ...
>   end
>
> everywhere in your code, then it should have the behavior you're looking
> for, I think.

Except that if you will still get a warning about "already initialized
constant Foo".  However, you can do this:

  self.type.__send__(:remove_const, :Foo)
  class Foo < Bar
    ...
  end

It's almost certainly a bad idea and will almost certainly break code, but
you can do it.

Paul