static public Method

GC.enable

GC.enable     true or false

Enables garbage collection, returning true if garbage collection was previously disabled.

GC.disable   #=> false
GC.enable    #=> true
GC.enable    #=> false

Source Code

/*
*  call-seq:
*     GC.enable    => true or false
*
*  Enables garbage collection, returning <code>true</code> if garbage
*  collection was previously disabled.
*
*     GC.disable   #=> false
*     GC.enable    #=> true
*     GC.enable    #=> false
*
*/

VALUE
rb_gc_enable()
{
   int old = dont_gc;

   dont_gc = Qfalse;
   return old;
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.