I''m trying to find an explanation of the difference between ''='' and ''=>''. I thought a good first step would be finding out whether this is a Ruby or a Rails construct. Then I''d dig in before bothering the list. No joy at step 1. Can anybody point me to the right documentation? Thanks in advance, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060331/8fe95645/attachment.html
Bill Walton wrote:> I''m trying to find an explanation of the difference between ''='' and > ''=>''. I thought a good first step would be finding out whether this is > a Ruby or a Rails construct. Then I''d dig in before bothering the > list. No joy at step 1. Can anybody point me to the right documentation?It''s Ruby. In brief, ''='' is a general assignment, while ''=>'' is specifically for key-value relationships in hashes. Theres some documentation here: http://www.rubycentral.com/book/intro.html -- Alex
Thank you, Alex. I appreciate your help. Best regards, Bill ----- Original Message ----- From: "Alex Young" <alex@blackkettle.org> To: <rails@lists.rubyonrails.org> Sent: 2006-03-31 11:40 AM Subject: Re: [Rails] ''=>'' : Ruby or Rails?> Bill Walton wrote: > > I''m trying to find an explanation of the difference between ''='' and > > ''=>''. I thought a good first step would be finding out whether this is > > a Ruby or a Rails construct. Then I''d dig in before bothering the > > list. No joy at step 1. Can anybody point me to the rightdocumentation?> It''s Ruby. > > In brief, ''='' is a general assignment, while ''=>'' is specifically for > key-value relationships in hashes. > > Theres some documentation here: > http://www.rubycentral.com/book/intro.html > > -- > Alex > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails