[Newbies] Finding all methods available to a class
Edgar J. De Cleene
edgardec2001 at yahoo.com.ar
Sun Apr 8 19:03:51 UTC 2007
El 4/8/07 3:19 PM, "Ian Oversby" <oversby at googlemail.com> escribió:
> How do I find all the methods available to a class? I was looking for
> a way to output a line-ending and I finally stumbled upon "String
> crlf" through google. If I find the String class in the System
> Browser and then use find method by wildcard to list all methods
> beginning with 'c' it doesn't list crlf.
YourClass methodDict keysDo: [:k| Transcript show: k;cr]
Replace YourClass for what you wish
String class methodDict keysDo: [:k| Transcript show: k;cr]
Note what in this case you must add "class"
More information about the Beginners