# Re: it is possible to unload a class?

**URL:** <https://www.ruby-forum.com/t/re-it-is-possible-to-unload-a-class/97145>\
**Category:** Ruby\
**Created:** [January 25, 2006, 12:30pm UTC](https://www.ruby-forum.com/t/re-it-is-possible-to-unload-a-class/97145 "2006-01-25T12:30:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 25, 2006, 12:30pm UTC](https://www.ruby-forum.com/t/re-it-is-possible-to-unload-a-class/97145/1 "2006-01-25T12:30:33Z")

</div>

Dear sayoyo,

there is a project called “unrequireable” by Jan Molic:

\_[http://raa.ruby-lang.org/project/unrequireable/\_](http://raa.ruby-lang.org/project/unrequireable/_)  
([http://raa.ruby-lang.org/project/unrequireable/](http://raa.ruby-lang.org/project/unrequireable/))

Maybe this can help you, if you can organize your code into  
two files, so that one of them contains the code and classes  
which you sometimes need and sometimes do not need.  
From the other file, you can then require and unrequire that  
file, so that the classes from the first file sometimes exist and  
sometimes do not exist.

Best regards,

Axel
