Module#remove_const documentation is confusing
The documentation for Module#remove_const says:
Removes the definition of the given constant, returning that constant’s value. Predefined classes and singleton objects (such as true) cannot be removed.
Based on this documentation, someone said in http://stackoverflow.com/q/7513727/38765 that you can't do remove_const on the File constant, whereas you can.
File # => NameError: uninitialized constant File