From: Saji Hameed Date: 2012-02-13T20:19:51+09:00 Subject: Re: the ruby syntax On Sun, Feb 12, 2012 at 10:49 PM, maven apache wrote: > But in the ruby document:http://www.ruby-doc.org/docs/ProgrammingRuby/ > > Definiation of a hash should  like this: > > {'key'=>'value'.....} > > Now in the IO.new exmaple,it is written as {key:value}.  Is the ':' symbol > same as '=>'?? I do not find it is methioned in any document. > Unfortunately, even the latest rubydoc http://ruby-doc.org/core-1.9.3/Hash.html somehow does not mention this new syntax. saji -- Saji N Hameed, ARC-ENV, Center for Advanced Information Science and Technology, University of Aizu, Tsuruga, Ikki-machi, Aizuwakamatsu-shi, Fukushima 965-8580, Japan Tel: +81242 37-2736 Fax:+81242 37-2760  email: saji@u-aizu.ac.jp  url: http://www.u-aizu.ac.jp  bib: http://www.researcherid.com/rid/B-9188-2009