Class: ObjSpace::InternalObjectWrapper

Inherits:
Object
  • Object
show all
Defined in:
objspace.c

Instance Method Summary collapse

Instance Method Details

#inspectObject


669
670
671
672
673
674
675
676
# File 'objspace.c', line 669

static VALUE
iow_inspect(VALUE self)
{
    VALUE obj = (VALUE)DATA_PTR(self);
    VALUE type = type2sym(BUILTIN_TYPE(obj));

    return rb_sprintf("#<InternalObject:%p %s>", (void *)obj, rb_id2name(SYM2ID(type)));
}

#internal_object_idObject


678
679
680
681
682
683
# File 'objspace.c', line 678

static VALUE
iow_internal_object_id(VALUE self)
{
    VALUE obj = (VALUE)DATA_PTR(self);
    return rb_obj_id(obj);
}

#typeObject


662
663
664
665
666
667
# File 'objspace.c', line 662

static VALUE
iow_type(VALUE self)
{
    VALUE obj = (VALUE)DATA_PTR(self);
    return type2sym(BUILTIN_TYPE(obj));
}