title: TypeError when including a clone of a Module in Ruby
body: <p>I'm testing a Module that has a state. Currently I restore that state after each testcase. Instead I would like to use a throwaway clone of the module.</p>
  
  <p>Consider the following simple example:</p>
  
  <pre><code>module MyModule; end
  clone = MyModule.clone
  clone.class # =&gt; Module
  clone.class == MyModule.class # =&gt; true
  class MyClass
    include clone # =&gt; TypeError: wrong argument type Class (expected Module)
  end
  </code></pre>
  
  <p>Why doesn't this work? Is there a way to achieve what I'm aiming for?</p>