From: Vidar Hokstad Date: 2006-11-26T00:15:06+09:00 Subject: Re: coding practise sempsteen wrote: > 1-) What does "Hash#has_key?" actually do? > Why do we need such a method in spite of using the result of "Hash#[]" > method which will return nil for a non-present key. Because you won't know if a "nil" result from Hash#[] means that you tried to access a non-existing key or if you accessed a key where the _value_ is nil. Vidar