Kelly Dwight Felkins
1/24/2006 8:43:00 PM
Is it possible to reload a class in irb?
On 1/24/06, Edward Faulkner <ef@alum.mit.edu> wrote:
>
> On Wed, Jan 25, 2006 at 03:58:12AM +0900, sayoyo@yahoo.com wrote:
> > we can load a library, a class or a gem with the funtionc "require". If
> > I want to unload a library, a class or a gem, how can I do this, (or it
> > is possible?)
>
> In general it's not possible.
>
> I suppose you could try to hunt down and rebind every reference to the
> classes/modules in the library, eventually allowing them to be garabge
> collected. But I can't think of a practical reason to do that.
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQFD1opAnhUz11p9MSARAkyeAKDSPS7oMmQuky/p9l3U8pNG21N2qwCgrcnp
> eLWQ9EMWQ+RzdScCZ9SpLJQ=
> =tmJb
> -----END PGP SIGNATURE-----
>
>
>