Skip to content

Commit

Permalink
add BasicObject#__id__
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Apr 23, 2013
1 parent 8819aef commit 39d6b5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gc.c
Expand Up @@ -1079,6 +1079,7 @@ Init_GC(void)
nomem_error = rb_exc_new2(rb_eNoMemError, "failed to allocate memory");
GC_RETAIN(nomem_error);

rb_objc_define_method(rb_cBasicObject, "__id__", rb_obj_id, 0);
rb_objc_define_method(rb_mKernel, "__id__", rb_obj_id, 0);
rb_objc_define_method(rb_mKernel, "object_id", rb_obj_id, 0);

Expand Down

0 comments on commit 39d6b5d

Please sign in to comment.