Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2818
| 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 | Nathan McDorman <nmcdorman@gmail.com> |
| Newsgroups | comp.lang.ruby |
| Subject | Noob question re:returning nil |
| Date | Wed, 13 Apr 2011 23:27:48 -0500 |
| Organization | Service de news de lacave.net |
| Lines | 14 |
| Message-ID | <72f3e8defb9cb5e5475d2089568692b5@ruby-forum.com> (permalink) |
| NNTP-Posting-Host | bristol.highgroove.com |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | talisker.lacave.net 1302755290 77656 65.111.164.187 (14 Apr 2011 04:28:10 GMT) |
| X-Complaints-To | abuse@lacave.net |
| NNTP-Posting-Date | Thu, 14 Apr 2011 04:28:10 +0000 (UTC) |
| 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 | 381499 |
| X-Ml-Name | ruby-talk |
| X-Rubymirror | Yes |
| X-Ruby-Talk | <72f3e8defb9cb5e5475d2089568692b5@ruby-forum.com> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.ruby:2818 |
Show key headers only | View raw
Hello all, I am a beginner programmer and a beginner to Ruby. I was just going through a tutorial book and trying to create some programs. The current program I am working on I am having trouble with. I have defined a method and the last thing in the method is a puts concatenation. The program runs and does everything correctly except for when I call the method it puts the string and then nil underneath. I thought the return value was the last value of the string so I don't understand why it is doing this. How do I get rid of the nil? -- Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Next in thread | Find similar | Unroll 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