From: Avi Bryant Date: 2001-09-16T07:16:04+09:00 Subject: [ruby-talk:21244] Re: Redefining constants On Sun, 16 Sep 2001, Johann Hibschman wrote: > > >>>>> "ts" == ts writes: > > ts> Well, you're trying to change the class hierarchy. See > ts> [ruby-talk:20766] about this > > ts> http://www.ruby-talk.com/20766 > > Thanks for the reference. So the answer is that I can't? This is > inconvenient for interactive development, but I can work around it. > Why isn't there a way to simply unbind a class name or other > identifier, then redefine it? 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.