Flowdock
method

length

Importance_0
v2_5_5 - Show latest stable - 0 notes - Class: WeakMap
length() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE
wmap_size(VALUE self)
{
    struct weakmap *w;
    st_index_t n;

    TypedData_Get_Struct(self, struct weakmap, &weakmap_type, w);
    n = w->wmap2obj->num_entries;
#if SIZEOF_ST_INDEX_T <= SIZEOF_LONG
    return ULONG2NUM(n);
#else
    return ULL2NUM(n);
#endif
}
Register or log in to add new notes.