Perl::Metrics::File - A local file to generate metrics for


Perl-Metrics documentation  | view source Contained in the Perl-Metrics distribution.

Index


NAME

Top

Perl::Metrics::File - A local file to generate metrics for

DESCRIPTION

Top

This class provides objects that link files on the local filesystem to the main metrics table via their document hex_id (see PPI::Document)

METHODS

Top

In addition to the general methods provided by Class::DBI, this class has the following additional methods.

path

The path accessor returns a string which contains the non-relative file path on the local system.

checked

The checked accessor returns the Unix epoch time for when the hex_id was last checked for this file.

hex_id

In the Perl::Metrics system all documents are identified by the hexidecimal MD5 value for their newline-localized contents.

The hex_id accessor returns this id for the file.

metrics @options

The metric accessor finds and returns all ::Metric object that match the hex_id of the ::File.

Document

The Document method provides a convenient shortcut which will load the PPI::Document object for the file (while confirming the hex_id matches).

Returns a PPI::Object or dies on error.

SUPPORT

Top

Bugs should be reported via the CPAN bug tracker at

http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Perl-Metrics

For other issues, contact the author.

AUTHOR

Top

Adam Kennedy <adamk@cpan.org>

SEE ALSO

Top

Perl::Metrics, PPI

COPYRIGHT

Top


Perl-Metrics documentation  | view source Contained in the Perl-Metrics distribution.