values()
public
Returns a new array populated with the
values from hsh. See also
Hash#keys.
h = { "a" => 100, "b" => 200, "c" => 300 }
h.values
Show source
static VALUE
rb_hash_values(VALUE hash)
{
VALUE ary;
ary = rb_ary_new();
rb_hash_foreach(hash, values_i, ary);
return ary;
}