Moose is often perceived as being a tool for analyzing Java or C++ systems. However, at its core, Moose is deeply integrated in Pharo and it is particularly useful for Pharo development.
While metrics computation is a peripheral capability, still often the first question people ask about Moose is: How do we compute a metric for a Pharo class?
Straightforward. Here is the magic code that opens the class in a dedicated browser that also displays the computed metrics:
((MoosePharoImporterTask new addClasses: {Morph}; run) allClasses entityNamed: Morph mooseName) openInMoose