From: Harry Kakueki Date: 2007-06-26T11:02:37+09:00 Subject: Re: Some help needed with understanding ruby hashes On 6/26/07, Frank Church wrote: > > If a ruby hash rubyhash has a key such as "hashkey" is there a way of > retrieving the value by the expression rubyhash["hashkey"] ? > > It only seems logical that is rubyhash.has_key?("hashkey") returns true > rubyhash["hashkey"] should return a value, but it always gives an error. > This gives you an error? rubyhash = {"hashkey"=>"hashvalue"} p rubyhash["hashkey"] Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/