From: Roger Johansson Date: 2006-06-24T20:53:16+09:00 Subject: Re: prop = x => y also , is it wrong to use the x => y construct in other context than describing hashtables? in my case my idea was to associate symbols with values in a sort of .net attribute/annotation way " meta.some_prop= :parent_of => [:sometype,:someprop] attr_accessor :some_prop " it works just fine for everything except for set properties. (whatever you might call them in ruby) " meta.my_meth :foo => :bar def my_meth() end " works just fine.. (the "meta" is an extended method on Class which returns an attribute object which in turn handles method_missing and then stores the class,methodid and data in a static lookup) -- Posted via http://www.ruby-forum.com/.