[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: it is possible to unload a class?

Nuralanur

1/25/2006 11:27:00 AM

Dear sayoyo,

there is a project called "unrequireable" by Jan Molic:

_http://raa.ruby-lang.org/project/unreq...
(http://raa.ruby-lang.org/project/unre...)

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