Title says it all. Coming from a PHP background, hash arrays are always defined using "key" => "value" - in ruby it seems to use :key => "value". What is the advantage of this? And why is this used for method params?
Thanks in advance.
| SitePoint Sponsor |




Title says it all. Coming from a PHP background, hash arrays are always defined using "key" => "value" - in ruby it seems to use :key => "value". What is the advantage of this? And why is this used for method params?
Thanks in advance.
Bookmarks