From: Marc-Andre Lafortune Date: 2012-03-07T08:22:25+09:00 Subject: [ruby-core:43104] [ruby-trunk - Bug #5354][Closed] Module#remove_const documentation is confusing Issue #5354 has been updated by Marc-Andre Lafortune. Status changed from Open to Closed Fixed by Nobu in r29519. Thanks for reporting this issue. ---------------------------------------- Bug #5354: Module#remove_const documentation is confusing https://bugs.ruby-lang.org/issues/5354 Author: Andrew Grimm Status: Closed Priority: Normal Assignee: Category: DOC Target version: ruby -v: ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32] =begin 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. class Object remove_const :File end File # => NameError: uninitialized constant File =end -- http://bugs.ruby-lang.org/