Re: code to retrieve all method categories and methods under a category
Posted by
tty on
Jan 30, 2020; 12:05pm
URL: https://forum.world.st/code-to-retrieve-all-method-categories-and-methods-under-a-category-tp5110115p5110930.html
Thanks to all for the pointers.
Here is what I came up with.
To get all the categories, remove the "reject:" block
> Transcript clear.
> (((WikitextParserFactory
> allMethodCategoriesIntegratedThrough:WikitextParserFactory) sorted)
> reject:[:r |
> |oc|
> oc := OrderedCollection
> with:#accessing
> with: #'initialize-release'
> with: #parsing
> with: #'Templates Bogus'.
> oc includes:r]) do:[:c |
>
> (WikitextParserFactory packageInfo methodsInCategory: c
> ofClass:WikitextParserFactory)
> do:[:m |
> Transcript show: c , ' -> ', m methodSymbol; cr.
> ]].
cheers.
--
Sent from:
http://forum.world.st/Squeak-Beginners-f107673.html_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners