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


Groups > comp.lang.ruby > #2828

Noob question re:returning nil

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail
From Nathan McDorman <nmcdorman@gmail.com>
Newsgroups comp.lang.ruby
Subject Noob question re:returning nil
Date Thu, 14 Apr 2011 00:55:30 -0500
Organization Service de news de lacave.net
Lines 8
Message-ID <6cf2537166557d9ca4643e40603bb38e@ruby-forum.com> (permalink)
References <72f3e8defb9cb5e5475d2089568692b5@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 1302762719 91166 65.111.164.187 (14 Apr 2011 06:31:59 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Thu, 14 Apr 2011 06:31:59 +0000 (UTC)
In-Reply-To <72f3e8defb9cb5e5475d2089568692b5@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 381509
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <6cf2537166557d9ca4643e40603bb38e@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:2828

Show key headers only | View raw


Thank you guys so much I really appreciate the help! I've changed the 
program to a method that just calculates what I want it to return and 
holds it in a var placed at the end of the method.  Then I call puts 
outside of the method on the method.

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

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


Thread

Noob question re:returning nil Nathan McDorman <nmcdorman@gmail.com> - 2011-04-13 23:27 -0500
  Re: Noob question re:returning nil Vincent Manis <vmanis@telus.net> - 2011-04-14 00:08 -0500
  Noob question re:returning nil Nathan McDorman <nmcdorman@gmail.com> - 2011-04-14 00:55 -0500

csiph-web