Assume I have a class and an instance method:
ClassExample#methodExample
^"???"
Is there any way in Smalltalk to get the name of the method:
var := ClassExample new.
nameOfMyMethod := var methodExample.
"nameOfMyMethod should be 'methodExample' (a string or symbol)"
?
I'm developing in VisualAge. Thanks for help!
Try this:
methodExample
^(Processor activeProcess stackAtFrame: 0 offset: -9) selector
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With