Am I right to consider ENV a Hash
ENV['HOME']
=>'/Users/yozloy'
But
ENV.class
#=>Object
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It implements most of the Hash methods but apparently a few are missing:
Most of these you’d never think to use, but
mergeandflattencould be useful.Remember that
ENVisn’t exactly a Hash, but a wrapper around the environment variables and the associated methods for retrieving and setting them.