Printing one ore more methods on a class
Ned Konz
ned at squeakland.org
Fri Mar 25 02:32:27 UTC 2005
On Thursday 24 March 2005 5:58 pm, Joseph Jones wrote:
> Given a class Foo and a selector Foo>>bar, is there some message I can send
> Foo to have it print out the contents of Foo>>bar?
>
> I've been browsing through the libraries and haven't come up with anything
> good. I can use >>selectors and dump out a collection of selector symbols
> but I am unsure how to get the actual implementation of each selector.
Foo sourceCodeAt: #bar
which returns a Text; you can send that #asString if you don't want the
formatting.
--
Ned Konz
http://bike-nomad.com/squeak/
More information about the Squeak-dev
mailing list
|