From: matz@... (Yukihiro Matsumoto) Date: 2001-12-11T02:59:52+09:00 Subject: [ruby-talk:28112] Re: How does puts decide how to print a given object? Hi, In message "[ruby-talk:28082] Re: How does puts decide how to print a given object?" on 01/12/10, mengx@nielsenmedia.com writes: |in the case of a = nil |a.to_s ==> "" |a.inspect ==> nil | |so puts actually calls inspect for output, at least for this one, correct? Both puts and print convert nil into "nil". It's special treatment I forgot to mention. matz.