End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
ENV.values
ENV.values → array of values
hash.c
View on GitHub ↗
static VALUE
env_f_values(VALUE _)
{
return env_values();
}
Returns all environment variable values in an Array:
Example
ENV.replace('foo' => '0', 'bar' => '1') ENV.values # => ['1', '0']
The order of the values is OS-dependent. See About Ordering.