title: Ruby Object Model - ancestors of a class
body: <p>I'm studying the Ruby Object Model from the book "Metaprogramming Ruby" and I understand the notion of how classes are Objects as well.</p>
  
  <pre><code>class A
  end
  
  A.ancestors # =&gt; [A, Object, Kernel, BasicObject]
  A.class.ancestors # =&gt; [Class, Module, Object, Kernel, BasicObject]
  </code></pre>
  
  <p>What I'm confused about is that when I initially tried A.ancestors in irb, I expected the results that I got in A.class.ancestors - my thought process was: since A is a class, and a class is an instance of class Class, it's ancestor is Class.  But Class doesn't seem to be an ancestor of A.</p>
  
  <p>Would someone be able to clear up my confusion here?</p>