From: 7stud -- Date: 2012-12-15T16:37:19+09:00 Subject: Re: Ruby class hierarchy confusion 7stud -- wrote in post #1089134: > > Think about going from an object to the right into its class, and then > up the hierarchy to the superclass. > How about this instead: an object's class is to the right of it in the diagram, and an object's superclass is above it. The object 'a' is not a class, so it has no superclass and nothing appears above it in the diagram. The object A's class is to it's right, i.e. Class, and A's superclass is above it, i.e. Parent. Now what about Class? It's a class because this works: MyClass = Class.new and because Class is a class, it is has to be an instance of Class. So Class's *class* is Class, and as shown in the diagram Class's superclass is Module because Class inherits from Module. -- Posted via http://www.ruby-forum.com/.