From: Andrew Stewart Date: 2007-10-02T22:28:11+09:00 Subject: Re: Discarding putc But Not puts On 2 Oct 2007, at 13:36, 7stud -- wrote: > Try this: > > def func > alias orig_putc putc > > def putc(*args) > end > > putc 66 > puts 66 > > alias putc orig_putc > end Aliasing back again worked -- thanks. It produces a warning ("discarding old putc") when it encounters the second alias, at the end of the target method. But I can live with that. Maybe undefining putc first would stop the warning but it's not immediately obvious to me how to do that. Thanks for your help. I greatly appreciate it. Regards, Andy Stewart ------- http://airbladesoftware.com