NAME

Code::Statistics::Metric - base class for Code::Statistic metrics

VERSION

version 1.102351

measure Returns the metric of the given target. Is called with the metric class name and a target object of unspecified type. This function should be overridden with specific logic to actually retrieve the metric data.

incompatible_with Returns true if the given target is explicitly not supported by this metric. Is called with the metric class name and a string representing the target identifiers after 'Code::Statistics::Target::'. Default is that all metrics are compatible with all targets.

supports Returns true if the given target is supported by this metric. Is called with the metric class name and a string representing the target identifiers after 'Code::Statistics::Target::'. Default is that all metrics are compatible with all targets.

Has higher precedence than 'incompatible_with' and should be used to
incompatibilities set by other targets.

AUTHOR

Christian Walde <mithaldu@yahoo.de>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2010 by Christian Walde.

This is free software, licensed under:

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE, Version 2, December 2004