From: Lowell Kirsh Date: 2005-06-14T13:15:30+09:00 Subject: Re: are these the same? Thank you both. Things are much clearer now :) Lowell Kirsh wrote: > I'm wondering about the difference between writing something like > > @x = ... > and > self.x = ... > > from within a class. Are they the same thing? To be more concrete, I > have given a fuller example below: > > class Foo > def bar > self.x = 1 > end > end > > class Foo > def bar > @x = 1 > end > end > > > Lowell