Thanks Ver��nica, now it works fine.
I have one more question :) it is possible with Ring to query if a package is a "system" package? (included in the downloaded image). We've been talking about that feature in the list http://lists.gforge.inria.fr/pipermail/pharo-project/2009-December/018168.html but no solution was proposed.
Hern��n
Hi Hernan,
Sorry, I have been totally disconnected because of my thesis.
Ok I quickly reply...
You need to instantiate methods with #realClass:selector: to manipulate objects from the image..
otherwise, they are static (within a ring source model). The category is not assigned then is not possible to know if they are from a class extension.
�� �� �� �� realClass: ArrayedCollection
��ArrayedCollection selectors asSortedCollection collect: [ : each |
�� �� RGMethodDefinition
�� �� �� �� selector: each ��]
then you can use: �� aRGMethod isExtension
Cheers,
Veronica
On 23 Jul 2012, at 13:45, Hern��n Morales Durand wrote:
> Hello all,
> You may help me on this one. I want to filter out method selectors which are extensions of a particular class. For example, in Pharo 1.4 the ArrayedCollection class has these selectors:
> ArrayedCollection selectors asSortedCollection
>
> I would want all of them except #writeOnGZIPByteStream: which is in "Compression" package. I did a try to Ring
>
> ArrayedCollection selectors asSortedCollection collect: [ : each |
> �� �� RGMethodDefinition
> �� �� �� �� class: ArrayedCollection
> �� �� �� �� selector: each ]
>
> with MethodReference I did :
>
> ��... ( each category beginsWith: '*' ��) not ...
>
> but it seems not supported in Ring? Any hints?
>
> Cheers,
>
> Hern��n
>