From: Trans Date: 2006-12-30T11:36:27+09:00 Subject: Re: Using an UnboundMethod instead of an alias to redefine a method Paulo K�ch wrote: > Ok, let me hijack this thread back to it's first subject. =P > > Considering the example, let's assume we want to redefine the method > to encapsulte the old behaviour in a new one. Couldn't this be done > in the metaclass[1] and the metaclass calls the object's original > definition? > > [1] From why's article: > class Object > def metaclass > class << self; return self; end; > end > end That's how many of these implementations work, albiet by adding a module to the singleton class so that more than one layer can be added as well. T.