Search code examples
idesmalltalksqueakpharoclass-hierarchy

Pharo/Squeak - How do I quickly browse the implementation of a given method in a given class?


Let's say I want to see how "copy" is implemented in the Dictionary class. Currently I use the system browser and manually traverse the inheritance hierarchy (bottom up) until I find the class that implements the given message. Is there a one-liner for the workspace, that would open the system browser at the right location?


Solution

  • ( SomeClass whichClassIncludesSelector: #initialize ) browse
    

    That will browse the class that implements the message #initialize.