From: Gregory Brown Date: 2008-11-21T02:01:26+09:00 Subject: Re: Syntax question from a newbie to Ruby On Tue, Nov 18, 2008 at 8:48 PM, Peņa, Botp wrote: > From: Mike Austin [mailto:"mike[nospam]"@mike-austin.com] > .. > # $stdout << "I think " << number + 1 << " may be a better favorite\n" > # It's much cleaner, although not as simple a concept as print. > > well you can extend ruby to your liking, > >> def prints *list >> list.each do |item| > * $stdout << item >> end >> end > => nil With the exception that this method returns an array, there is no difference between it and print. Try: print "foo ", "bar ", "baz" -- Technical Blaag at: http://blog.majesticseacreature.com | Non-tech stuff at: http://metametta.blogspot.com