From: Phillip Hutchings Date: 2006-06-24T20:59:05+09:00 Subject: Re: prop = x => y When you do my_method :foo => :bar Ruby turns this in to my_method({:foo => :bar}) to provide a pseudo-keyword-argument system. This isn't legal anywhere else in Ruby code. On 6/24/06, Roger Johansson wrote: > Why cant I do things like: > > my_prop = :foo => :bar > > when its possible to do: > > my_meth :foo => :bar > > ?? > > ive tried with > my_prop = (:foo => :bar) > to but no luck.. > > //Roger > > -- > Posted via http://www.ruby-forum.com/. > > -- Phillip Hutchings http://www.sitharus.com/