Class: ObjSpace::InternalObjectWrapper
- Inherits:
-
Object
- Object
- ObjSpace::InternalObjectWrapper
- Defined in:
- objspace.c
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
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_id ⇒ Object
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);
}
|
#type ⇒ Object
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));
}
|