title: question regarding rails framework code
body: <p>I noticed that the code in the rails framework is using the following convention all over the place:</p>
  
  <pre><code>class SomeClass
    class &lt;&lt; self
       def some function
       end
    end
  end
  </code></pre>
  
  <p>rather than</p>
  
  <pre><code>class SomeClass
  end
  
  def SomeClass.function
  end
  </code></pre>
  
  <p>and</p>
  
  <pre><code>class SomeClass
    def self.somefunction
    end
  end
  </code></pre>
  
  <p>What is the reason for this design choice? They all seem to accomplish them same thing</p>