Require + destroy/unload

Whats the best way to destroy it?
I could do class XY end ( do I have to overwrite each method and vars?)
But that doesnt free the memory +
I have to do it for all global vars.

How to "unload" a module (at once, if not knowing its contents)?

Berg

I can't do much on my phone but suggest you look up undef, remove_method,
etc.

ยทยทยท

On 25/02/2016 7:35 PM, "A Berger" <aberger7890@gmail.com> wrote:

Whats the best way to destroy it?
I could do class XY end ( do I have to overwrite each method and vars?)
But that doesnt free the memory +
I have to do it for all global vars.

How to "unload" a module (at once, if not knowing its contents)?

Berg

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;