Hi Ricky,
That is an interesting question. I would be very interested in knowing why you need this :).
Could you develop on your use case?
Cheers, Doru
On Jun 6, 2007, at 12:42 AM, Adrian Kuhn wrote:
Hey Ricky,
the otherway round is easier, since you can get from #NOM to #numberOfMethods using
(self metaDescription attributeNamed: #NOM) definingMethod selector
so you could enumerate all attributes and detect the matching one indirectly.
Does this answer your question?
cheers, AA
On 5 Jun 2007, at 23:11 , Richard Wettel wrote:
Hi,
Is there a way in Moose to get from the name of a method to the name of the property defined with a pragma inside that method? For example, having #numberOfMethod, how do I get to #NOM?
Thanks, Ricky _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Tudor Girba www.iam.unibe.ch/~girba www.iam.unibe.ch/~girba/blog/
"Problem solving should be concentrated on describing the problem in a way that is relevant for the solution."