From: Ryan Davis Date: 2012-02-13T01:31:55+09:00 Subject: Re: the ruby syntax On Feb 12, 2012, at 05:49 , 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. Extracted from the book "Programming Ruby - The Pragmatic Programmer's Guide" Copyright © 2001 by Addison Wesley Longman, Inc. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/)).