From: 7stud -- Newsgroups: comp.lang.ruby Subject: Re: Dereferencing instance variables vs local variables/methods Date: Thu, 31 Mar 2011 19:17:33 -0500 Organization: Service de news de lacave.net Lines: 18 Message-ID: <16fbe2a770a1e51f487325430816ecab@ruby-forum.com> References: <25602497.1108.1301569887795.JavaMail.geo-discussion-forums@yqod3> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1301617079 31411 65.111.164.187 (1 Apr 2011 00:17:59 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Fri, 1 Apr 2011 00:17:59 +0000 (UTC) In-Reply-To: <25602497.1108.1301569887795.JavaMail.geo-discussion-forums@yqod3> 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: 380719 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: <16fbe2a770a1e51f487325430816ecab@ruby-forum.com> Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.stben.net!talisker.lacave.net!lacave.net!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:2073 Josep M. Bach wrote in post #990178: > Hello, > > I think I don't agree/understand how instance variables work in ruby. > There is also this trickery as well: if 1 > 5 x = 10 end puts x #nil -- Posted via http://www.ruby-forum.com/.