From: "Antonio Fernández Vara" Date: 2011-10-03T17:20:46+09:00 Subject: Re: Need some help with hashes, don't know what fails --0015174c15aaa8730604ae60a635 Content-Type: text/plain; charset=ISO-8859-1 Thanks both, now I understand I'm doing correctly the hashes. On Mon, Oct 3, 2011 at 9:57 AM, Joey Zhou wrote: > { what: 'text', who: 'Antonio', when: Time.now} > is in fact > { :what => 'text', :who => 'Antonio', :when => Time.now } > > the keys are symbols, not strings > > so you must > > puts value.has_key?(:what) > > -- > Posted via http://www.ruby-forum.com/. > > --0015174c15aaa8730604ae60a635--