title: Using modules as namespaces to override built-in classes in Ruby
body: <p>I have a <code>Date</code> class which I would like to use to overwrite Ruby's <code>Date</code> class. However, whenever I do a <code>require 'Date'</code> in my other files, it includes Ruby's <code>Date</code> class and not my own.</p>
  
  <p>I thought that putting it in a module would work well, so I did so within the <code>Date.rb</code> file:</p>
  
  <pre><code>module myModule
    class Date
    #...
    end
  end
  </code></pre>
  
  <p>However I still can't figure out how to make my other classes include THIS <code>Date</code> class and not the built-in class. How can I achieve this?</p>
  
  <p>All help is appreciated and thanks in advance!</p>