title: Module declaration with inner classes in Ruby
body: <p>For example, I have file <code>list.rb</code></p>
  
  <pre><code>module List
   class Base
   #...
   end
  end
  </code></pre>
  
  <p>So in outer files this class would be accessible as <code>List::Base</code>.</p>
  
  <p>Let's say I create another file <code>list_base_extenstion.rb</code></p>
  
  <p>I can do this:</p>
  
  <pre><code>module List
   class BaseExtension &lt; Base
   #...
   end
  end
  </code></pre>
  
  <p>Or </p>
  
  <pre><code>class BaseExtension &lt; List::Base
  end
  </code></pre>
  
  <p>Is this equal?</p>
  
  <p>Or then BaseExtension will not be considered the part of module, but inherit directly from <code>List::Base</code>?</p>