Forum: Ruby Re: it is possible to unload a class?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
67bb4df2775f6a6b603347dce7119571?d=identicon&s=25 unknown (Guest)
on 2006-01-25 12:30
(Received via mailing list)
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/)

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
This topic is locked and can not be replied to.