Implementing Your Metric Subclass
The work of a metric is performed in the method #measure:. This method takes the code element as a parameter and returns a CtMeasurement with a numerical value.
Mandatory Methods
CtMeasure defines a set of methods categorized as override mandatory. These methods must be overridden in your subclass.
Optional Methods
CtMeasure defines a set of methods categorized as override optional. These methods will often be overridden in your subclass; however, failure to override them does not result in an error.
Last modified date: 06/30/2015