title: DelegateClass vs Class Inheritance in Ruby
body: <p>Can someone please provide some insight as to when to use delegation via <a href="http://ruby-doc.org/stdlib-2.3.1/libdoc/delegate/rdoc/Object.html#method-i-DelegateClass" rel="noreferrer"><code>DelegateClass</code></a> (e.g. <code>Seller &lt; DelegateClass(Person)</code>) and when to use class inheritance (e.g. <code>Seller &lt; Person</code>) in ruby? </p>
  
  <pre><code>class Seller &lt; DelegateClass(Person)
    def sales
       ...
    end 
  end 
  
  class Seller &lt; Person 
    def sales
       ...
    end 
  end 
  </code></pre>
  
  <p><em>When I was looking over the Ruby on Rails source on Github I found quite a few <a href="https://github.com/rails/rails/search?utf8=%E2%9C%93&amp;q=DelegateClass" rel="noreferrer">uses of <code>DelegateClass</code></a>.</em></p>