class ENV
ENV is a hash-like accessor for environment variables.
Interaction with the Operating System¶ ↑
The ENV object interacts with the operating system’s environment variables:
-
When you get the value for a name in
ENV, the value is retrieved from among the current environment variables. -
When you create or set a name-value pair in
ENV, the name and value are immediately set in the environment variables. -
When you delete a name-value pair in
ENV, it is immediately deleted from the environment variables.