instance method
ObjectSpace::WeakMap#each
map.each {|key, val| ... } → self
weakmap.c
View on GitHub ↗
static VALUE
wmap_each(VALUE self)
{
struct weakmap *w;
TypedData_Get_Struct(self, struct weakmap, &weakmap_type, w);
wmap_foreach(w, wmap_each_i, (st_data_t)0);
return self;
}
Iterates over keys and values. Note that unlike other collections, each without block isn’t supported.