From: "David A. Black" Date: 2009-07-14T22:16:07+09:00 Subject: Re: Twelve rules of Ruby Not sure why they wrapped weirdly (at least on my screen), but here's a correctly-wrapped version, I hope. 1. Classes are objects. 2. Objects don't "have" methods; they have the intelligence to resolve messages by looking for methods along their class/module lookup path. 3. Every instance variable you ever see in any Ruby program belongs to whatever object "self" is at that moment, without exception. (Which is one reason that understanding how "self" gets assigned is absolutely vital.) 4. A code block is a syntactic construct, not an object. 5. Class variables are not class variables, in the sense of belonging to a particular class. They are class hierarchy variables. 6. Inheritance (A < B) is not the same as, and not related to, nesting (A::B). -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Now available: The Well-Grounded Rubyist (http://manning.com/black2) Training! Intro to Ruby, with Black & Kastner, September 14-17 (More info: http://rubyurl.com/vmzN)