Perl::Metrics::Lite::Analysis::Util - Utility class for PPI::Document operation
Utility subs used internally, but no harm in exposing them for now. Call these
with a fully-qualified package name, e.g.
Perl::Metrics::Lite::Analysis::Util::is_ref($thing,'ARRAY')
Arrayref of unique PPI::Statement::Package found in the PPI document.
Takes a PPI node and returns a count of the newlines it contains.
PPI normalizes line endings to newlines so CR/LF, CR and LF all come
out the same. The line counts reported by the various methods in this class
all exclude blank lines, comment lines and pod (the PPI document
is pruned before counting.)
Takes a thing and a type. Returns true is thing is a
reference of type type, otherwise returns false.