title: How do you list included Modules in a Ruby Class?
body: <p>How would you list out the modules that have been included in a specific class in a class hierarchy in Ruby?  Something like this:</p>
  
  <pre><code>module SomeModule
  end
  
  class ParentModel &lt; Object
    include SomeModule
  end
  
  class ChildModel &lt; ParentModel
  end
  
  p ChildModel.included_modules #=&gt; [SomeModule]
  p ChildModel.included_modules(false) #=&gt; []
  </code></pre>
  
  <p>Listing the ancestors makes the module appear higher in the tree:</p>
  
  <pre><code>p ChildModel.ancestors #=&gt; [ChildModel, ParentModel, SomeModule, Object, Kernel]
  </code></pre>