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.
Sunday, March 18, 2007
Instance variables and self
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment