Sunday, March 18, 2007

Instance variables and self

One of the most useful and important rules to learn in Ruby is this:
Every instance variable you see in a Ruby program belongs to whatever object is the current object (self) at that point.

No comments: