From: Kelly Dwight Felkins Date: 2006-01-25T05:42:49+09:00 Subject: Re: it is possible to unload a class? ------=_Part_3510_10647874.1138135356444 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is it possible to reload a class in irb? On 1/24/06, Edward Faulkner 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=3D > =3DtmJb > -----END PGP SIGNATURE----- > > > ------=_Part_3510_10647874.1138135356444--