From: James Edward Gray II Date: 2005-09-17T00:37:26+09:00 Subject: Re: Hash table questions On Sep 16, 2005, at 10:26 AM, EdUarDo wrote: > It works fine, thank you. > > Now I get a true answer when I ask: > > puts coords.has_key?(@position.post.to_s) > puts coords.has_key?('DC') > > but not when > > puts coords.has_key?(@position.post) > > is this correct? Do I need to do .to_s to retrieve data from hash? If the key is a String, yes. If the key were a symbol, you could omit it. James Edward Gray II