[Newbies] code to retrieve all method categories and methods under a category
tty
gettimothy at zoho.com
Thu Jan 30 12:05:14 UTC 2020
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
More information about the Beginners
mailing list