From: "Damián M. González" Date: 2013-02-16T23:27:10+09:00 Subject: Re: Confusion with Ruby printing mechanics. > Confusion begins with the below : > >>> p(puts(print("hi"))) > hi > nil > => nil # this is the actual output. > > But from the above analysis I expected the below: > >>> p(puts(print("hi"))) > hi > > nil > => nil Well there you are adding only one newline, it's added with puts. You can find what you want also in this way: p print("hi\n\n") -- Posted via http://www.ruby-forum.com/.