Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3244

Re: Problem with displaying command line outputs

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail
From jake kaiden <jakekaiden@yahoo.com>
Newsgroups comp.lang.ruby
Subject Re: Problem with displaying command line outputs
Date Wed, 20 Apr 2011 09:47:20 -0500
Organization Service de news de lacave.net
Lines 13
Message-ID <d007e6b34efbe07c2ffbd4683da2744e@ruby-forum.com> (permalink)
References <48522f9d35b96f204cda9ff5764fa129@ruby-forum.com>
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1303310886 97484 65.111.164.187 (20 Apr 2011 14:48:06 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Wed, 20 Apr 2011 14:48:06 +0000 (UTC)
In-Reply-To <48522f9d35b96f204cda9ff5764fa129@ruby-forum.com>
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 381925
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <d007e6b34efbe07c2ffbd4683da2744e@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:3244

Show key headers only | View raw


hi john -

  don't know if this will work in your case, but i've found when doing 
similar tests/debugs that "p string" works when "puts string" doesn't. 
"p" calls obj.inspect, rather than obj.to_s - 
http://polishinggems.blogspot.com/2011/02/p-vs-puts-vs-print.html


 - j

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Problem with displaying command line outputs John Smith <ks1911shooter@yahoo.com> - 2011-04-15 15:07 -0500
  Re: Problem with displaying command line outputs John Smith <ks1911shooter@yahoo.com> - 2011-04-20 08:59 -0500
  Re: Problem with displaying command line outputs jake kaiden <jakekaiden@yahoo.com> - 2011-04-20 09:47 -0500

csiph-web