Method: Hash#map_keys

Defined in:
ext/rmtools.cpp

#map_keysObject

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



393
394
395
396
397
398
# File 'ext/rmtools.cpp', line 393

static VALUE rb_hash_map_keys(VALUE hash)
{
  VALUE new_hash = rb_hash_new();
  rb_hash_foreach(hash, (int (*)(ANYARGS))map_keys_i, new_hash);
  return new_hash;
}