From: gotoken@... (GOTO Kentaro) Date: 2000-11-22T04:13:42+09:00 Subject: [ruby-talk:6506] Re: redefining methods in a hierarchy. In message "[ruby-talk:6503] redefining methods in a hierarchy." on 00/11/22, Hugh Sasse Staff Elec Eng writes: >If I have an object which I know to be a subclass of a subclass (at lease) >and I want to override a method, I can do it in that object's class and >all is well. But if I can override the method higher up I get more power >from my change. My change may not just affect Fixnums, but it might be >able to work on all numbers, for example. Given the reflection abilities >of Ruby, can I ask an object which class really handles a given method? >Then I know where to make the change. By the way, it may be danger sometimes. So, I wrote a tool to prohibit redefinition. See RAA:preserved, http://www.ruby-lang.org/en/raa-list.rhtml?name=preserved -- gotoken