![]() ![]() ![]() May not be a non-String that does not respond to #to_str: ENV = Object. ![]() May not contain character "=": ENV = '0' # Raises Errno::EINVAL (Invalid argument - ruby_setenv(=)) May not be the empty string: ENV = '0' # Raises Errno::EINVAL (Invalid argument - ruby_setenv()) Valid Names and Values ¶ ↑Įach name or value must be one of the following:Īn object that responds to #to_str by returning a String, in which case that String will be used as the name or value. ![]() When you delete a name-value pair in ENV, it is immediately deleted from the 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 get the value for a name in ENV, the value is retrieved from among the current environment variables. The ENV object interacts with the operating system's environment variables: Interaction with the Operating System ¶ ↑ ENV is a hash-like accessor for environment variables. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |