From: Mathieu Bouchard Date: 2004-02-06T04:31:53+09:00 Subject: Re: rb_io_puts is strange On Wed, 4 Feb 2004, Elliott Hughes wrote: > [re: puts behaving differently depending on the final character of the > string it's outputting] > > It's the feature. > Being documented doesn't stop it being a bad idea, though! Here's probably what you want: class IO def println(*a) a.each {|x| print x,"\n" } nil end end module Kernel def println(*a) $defout.println(*a) end end ________________________________________________________________ Mathieu Bouchard http://artengine.ca/matju