Yasushi Shoji <yashi / yashi.com> writes:

> maybe i'm missing something but why not just use alias?
> 
>     class String
> 
>       alias _upcase upcase
> 
>       def upcase
> 	res = _upcase
> 	res.tr '_', '~'
>       end
> 
>     end

I'm trying to do something more generic, and that also avoids the
problems with infinite loops that can arise with renaming in
subclasses.


Dave