Method: Hash#map_keys!

Defined in:
ext/rmtools.cpp

#map_keys!Object

Hashes map methods that doesn’t make hash into array New hash may get shorter than source



355
356
357
358
359
# File 'ext/rmtools.cpp', line 355

static VALUE rb_hash_map_keys_bang(VALUE hash)
{
  rb_hash_foreach(hash, (int (*)(ANYARGS))replace_keys_i, hash);
  return hash;
}