A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://ruby-doc.org/stdlib-2.7.1/libdoc/objspace/rdoc/ObjectSpace/InternalObjectWrapper.html below:

Class: ObjectSpace::InternalObjectWrapper (Ruby 2.7.1)

ObjectSpace::InternalObjectWrapper

inspect() click to toggle source

See Object#inspect.

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

    return rb_sprintf("#<InternalObject:%p %"PRIsVALUE">", (void *)obj, rb_sym2str(type));
}
            

internal_object_id() click to toggle source

Returns the Object#object_id of the internal object.

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

type() click to toggle source

Returns the type of the internal object.

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4