title: Understanding ruby .class and .ancestors methods
body: <p>I have a class defined as below</p>
  
  <pre><code>class Order
  end
  
  puts Order.class #-&gt; Class
  puts Order.ancestors #-&gt; [Order, Object, Kernel, BasicObject]
  
  puts Order.class.ancestors #-&gt;[Class, Module, Object, Kernel, BasicObject]
  </code></pre>
  
  <p>My question is why is it that Order.ancestors doesn't show 'Class' or 'Module' in ancestors chain? Since Order is an object of the class Class, shouldn't Order show all the ancestors of Class?</p>