instance method
ObjectSpace::WeakMap#values
map.values → new_array
weakmap.c
View on GitHub ↗
static VALUE
wmap_values(VALUE self)
{
struct weakmap *w;
TypedData_Get_Struct(self, struct weakmap, &weakmap_type, w);
VALUE ary = rb_ary_new();
wmap_foreach(w, wmap_values_i, (st_data_t)ary);
return ary;
}
Returns a new Array containing all values in the map.