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


Groups > comp.lang.ruby > #2828

Noob question re:returning nil

From Nathan McDorman <nmcdorman@gmail.com>
Newsgroups comp.lang.ruby
Subject Noob question re:returning nil
Date 2011-04-14 00:55 -0500
Organization Service de news de lacave.net
Message-ID <6cf2537166557d9ca4643e40603bb38e@ruby-forum.com> (permalink)
References <72f3e8defb9cb5e5475d2089568692b5@ruby-forum.com>

Show all headers | 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