title: Ruby - remove_const :File
body: <p>What is this piece of code doing?</p>
  
  <pre><code>class Object
     remove_const :File
  end
  </code></pre>
  
  <p>Is it completely deleting[1] the class? When I call <code>File.instance_methods</code> after that piece of code, it's just showing the methods that are inherited from Object/Kernel. </p>
  
  <p>Is it possible to revert this to original state? I mean, after using <code>remove_const</code>, is there a way to bring the class back to it's original state? (without saving the class definition previously.)</p>
  
  <p>[1] sorry for using the word "delete"</p>