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(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev