From: John Wilger Date: 2006-11-01T14:09:19+09:00 Subject: Re: variable access through self On 10/31/06, Michael P. Soulier wrote: > I've seen a lot of examples in Rails code where they're accessing what appear > to be instance variables from self. Something like > > self.foo = true > > Now, I'm assuming that you can only access methods this way, so this is > actually a method call of > > self.foo=(true) > > Is that right? I'm not always clear on it. That is correct. -- Regards, John Wilger http://johnwilger.com ----------- Alice came to a fork in the road. "Which road do I take?" she asked. "Where do you want to go?" responded the Cheshire cat. "I don't know," Alice answered. "Then," said the cat, "it doesn't matter." - Lewis Carrol, Alice in Wonderland