From: matz@... (Yukihiro Matsumoto) Date: 2002-12-31T17:23:55+09:00 Subject: Re: ENV.clear Hi, In message "ENV.clear" on 02/12/31, TOTO writes: |ENV.clear | |But it doesn't work, with the error message: |../env.rb:56: undefined method `clear' for # (NameError) | |I thought ENV is a Hash, so clear is defined. However, when I tried: |puts ENV.type | |it turns out ENV is only an Object. | | |However, the Hash function delete(key) is defined for ENV. That is very strange. | |Can someone experienced tell me what ENV is? ENV is an object that provides Hash-like singleton methods to work as if it's a String-key hash. matz.