Plugin/Useful.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Plugin/Useful/Greedy.pm ↑ Summary
1 #!/usr/bin/perl
2 # $Id: Useful.pm,v 1.7 2003/12/10 02:35:56 nothingmuch Exp $
3  
4 package Object::Meta::Plugin::Useful; # a base class for useful plugins, defines reasonable default methods
5  
6 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 ▶use base 'Object::Meta::Plugin';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 4 ▶use Object::Meta::Plugin::ExportList;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 4 our $VERSION = 0.01;
14  
15 42 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod documented
16 42 my $self = shift;
17 42 Object::Meta::Plugin::ExportList->new($self, @_); # create a new export list, with the methods as stated in the call to plug, and save it for future reference
18 }
19  
20 4 1; # Keep your mother happy.
21  
22 __END__
« Plugin/Useful/Greedy.pm ↑ Summary