From: 7stud -- Date: 2007-10-02T21:36:13+09:00 Subject: Re: Discarding putc But Not puts Lars Ticot wrote: > What about > > def putc(obj) > end > > puts "Hello" > putc "W" > > Did I miss something? Yep, switching it back to normal. Andrew Stewart wrote: >Could anyone please show me the light? Try this: putc 65 puts 65 def func alias orig_putc putc def putc(*args) end putc 66 puts 66 alias putc orig_putc end func putc 67 puts 67 --output:-- A65 66 C67 -- Posted via http://www.ruby-forum.com/.