From: Dave Thomas Date: 2000-09-12T21:46:41+09:00 Subject: [ruby-talk:4895] Re: Re-binding a block Yasushi Shoji 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