From: dblack@... Date: 2006-07-10T10:03:02+09:00 Subject: Re: why does block know about one instance variable and not the other? ---2049402039-1736991851-1152493379=:20343 Content-Type: MULTIPART/MIXED; BOUNDARY="-2049402039-1736991851-1152493379=:20343" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---2049402039-1736991851-1152493379=:20343 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Hi-- On Mon, 10 Jul 2006, Marcin Miel=C5=BCy=C5~Dski wrote: > anne001 wrote: >>=20 >> @var is an instance variable that belongs to whatever object is >> "self" at that moment in runtime. > > No, self is different in class context and instance context. Right -- but that doesn't make what anne001 said wrong. When you see @var, you're seeing an instance variable belonging to self. That's true whether self is a class object or some other kind of object. David --=20 http://www.rubypowerandlight.com =3D> Ruby/Rails training & consultancy http://www.manning.com/black =3D> RUBY FOR RAILS, the Ruby book for Rails developers http://dablog.rubypal.com =3D> D[avid ]A[. ]B[lack's][ Web]log dblack@wobblini.net =3D> me ---2049402039-1736991851-1152493379=:20343-- ---2049402039-1736991851-1152493379=:20343--