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


Groups > comp.lang.ruby > #2073

Re: Dereferencing instance variables vs local variables/methods

From 7stud -- <bbxx789_05ss@yahoo.com>
Newsgroups comp.lang.ruby
Subject Re: Dereferencing instance variables vs local variables/methods
Date 2011-03-31 19:17 -0500
Organization Service de news de lacave.net
Message-ID <16fbe2a770a1e51f487325430816ecab@ruby-forum.com> (permalink)
References <25602497.1108.1301569887795.JavaMail.geo-discussion-forums@yqod3>

Show all headers | View raw


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/.

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


Thread

Re: Dereferencing instance variables vs local variables/methods 7stud -- <bbxx789_05ss@yahoo.com> - 2011-03-31 19:17 -0500
  Re: Dereferencing instance variables vs local variables/methods Brian Candler <b.candler@pobox.com> - 2011-04-01 03:32 -0500

csiph-web