static public Method

ObjectSpace.undefine_finalizer(p1)

ObjectSpace.undefine_finalizer(obj)

Removes all finalizers for obj.

Source Code

/*
*  call-seq:
*     ObjectSpace.undefine_finalizer(obj)
*
*  Removes all finalizers for <i>obj</i>.
*
*/

static VALUE
undefine_final(os, obj)
   VALUE os, obj;
{
   if (finalizer_table) {
       st_delete(finalizer_table, (st_data_t*)&obj, 0);
   }
   return obj;
}
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.