title: Anonymous class
body: <p>Here is an example:</p>
  
  <pre><code>class A
    class &lt;&lt; self
      p superclass
    end
  end
  
  a = A.new
  
  class &lt;&lt; a
    p superclass
  end
  </code></pre>
  
  <p>This code print:</p>
  
  <pre><code>#&lt;Class:Object&gt;
  A
  </code></pre>
  
  <p>Why instead of</p>
  
  <pre><code>Class 
  A
  </code></pre>
  
  <p>print line </p>
  
  <pre><code>#&lt;Class:Object&gt;
  A
  </code></pre>
  
  <p>?</p>
  
  <p>For an anonymous class</p>
  
  <pre><code>  class &lt;&lt; self
      p superclass
    end
  </code></pre>
  
  <p>superclass is Class</p>