From: Harry Ohlsen Date: 2001-12-10T15:19:11+09:00 Subject: [ruby-talk:28065] Re: How does puts decide how to print a given object? In article <1007951608.461153.14301.nullmailer@ev.netlab.jp>, "Yukihiro Matsumoto" wrote: > if a is an array > puts each element of it > else > a = a.to_s > print a > print "\n" unless a[-1] == ?\n > end Ah! I see. Since I'm printing an array, it will end up calling to_s on each element, rather than the array itself. That makes sense. Thanks Matz. One thing I plan to point out in my article is that I've had a number of questions answered "from the horse's mouth" so to speak; that should impress people :-).