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