From: Robert Klemme Date: 2005-06-03T00:05:23+09:00 Subject: Re: Implementing a Read-Only array Gavin Kistner wrote: > On Jun 2, 2005, at 3:55 AM, Robert Klemme wrote: >> You don't even need the variable and the ugly concat >> [...] > > Prettier, to be sure. > > > Now I'm bothered by the fact that my delegate array thinks that it > responds to methods which only exist to raise an error. I've hacked > the delegate.rb code to add an #undelegate_method method. Comments on > the code I used (and a cleaner way to do it) would be appreciated. > Does this (feature, if not implementation) seem like it might be a > good addition to the standard lib code? Certainly. Did you try using remove_method - that might save you the Hash. http://www.ruby-doc.org/core/classes/Module.html#M000698 Kind regards robert