From: Adam Prescott Date: 2010-10-05T07:51:40+09:00 Subject: Re: How to suppress display of specific code in irb?? It won't be documented anywhere in the way you're expecting. It's actually already been explained in these responses. IRB will print, as the return value, the "last" value of the line you give it (using inspect), so 1; 2 will return "=> 2" because that's the "last" value of that line. Adding "; nil" just stops everything before "; nil" from being printed as output. On Mon, Oct 4, 2010 at 10:55 PM, Don Norcott wrote: > Thanks these all did the trick. I especially like the toggle. > > However even after finding the solution I still could not find where any > of this is documented. > > I would like to see an explanation of "string"; null. > > I find that adding only a semicolon (no nil)does the trick > doc = Nokogiri::HTML(open(url)); # produces no display > > > Can you point me to some documentation than may explain the solutions, > so I know where to look next time. > > Thanks > -- > Posted via http://www.ruby-forum.com/. > >