AutoDestruct/Trait/Attribute.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« AutoDestruct.pm ↑ Summary
1 #
2 # This file is part of MooseX-AutoDestruct
3 #
4 # This software is Copyright (c) 2011 by Chris Weyl.
5 #
6 # This is free software, licensed under:
7 #
8 # The GNU Lesser General Public License, Version 2.1, February 1999
9 #
10 package MooseX::AutoDestruct::Trait::Attribute;
11 {
12 1 $MooseX::AutoDestruct::Trait::Attribute::VERSION = '0.009';
13 }
14  
15 # ABSTRACT: Clear your attributes after a certain time
16  
17 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 # debugging
21 #use Smart::Comments '###', '####';
22  
23 1 ▶use MooseX::AutoDestruct ();
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 1 my $trait = MooseX::AutoDestruct->implementation() . '::Trait::Attribute';
26  
27 1 with $trait;
28  
29 1 !!42;
30  
31  
32  
33 =pod
34  
35 =head1 NAME
36  
37 MooseX::AutoDestruct::Trait::Attribute - Clear your attributes after a certain time
38  
39 =head1 VERSION
40  
41 version 0.009
42  
43 =head1 DESCRIPTION
44  
45 Attribute trait for L<MooseX::AutoDestruct>. This trait will compose itself
46 with an appropriate version-specific role depending on the version of L<Moose>
47 you're using.
48  
49 =head1 SEE ALSO
50  
51 L<MooseX:AutoDestruct>.
52  
53 =head1 AUTHOR
54  
55 Chris Weyl <cweyl@alumni.drew.edu>
56  
57 =head1 COPYRIGHT AND LICENSE
58  
59 This software is Copyright (c) 2011 by Chris Weyl.
60  
61 This is free software, licensed under:
62  
63 The GNU Lesser General Public License, Version 2.1, February 1999
64  
65 =cut
66  
67  
68 __END__
« AutoDestruct.pm ↑ Summary