Method: ObjectSpace::WeakMap#each
- Defined in:
- weakmap.c
#each {|key, val| ... } ⇒ self
Iterates over keys and values. Note that unlike other collections, each without block isn’t supported.
319 320 321 322 323 324 325 326 327 328 |
# File 'weakmap.c', line 319
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;
}
|