static public Method

ObjectSpace.add_finalizer(p1)

deprecated

Source Code

/* deprecated
*/

static VALUE
add_final(os, block)
   VALUE os, block;
{
   rb_warn("ObjectSpace::add_finalizer is deprecated; use define_finalizer");
   if (!rb_respond_to(block, rb_intern("call"))) {
       rb_raise(rb_eArgError, "wrong type argument %s (should be callable)",
                rb_obj_classname(block));
   }
   rb_ary_push(finalizers, block);
   return block;
}
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.