File Coverage

blib/lib/Module/Faker/Appendix.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Module::Faker::Appendix 0.025;
2             # ABSTRACT: a thing that appends
3              
4 8     8   8694 use Moose::Role;
  8         42171  
  8         42  
5              
6             has append => (
7             is => 'ro',
8             isa => 'ArrayRef',
9             default => sub {[]},
10             );
11              
12             around as_string => sub {
13             my ($orig, $self) = (shift, shift);
14             my $string = $self->$orig(@_);
15             $string .= join("\n", @{$self->append});
16             };
17              
18             1;
19              
20             __END__
21              
22             =pod
23              
24             =encoding UTF-8
25              
26             =head1 NAME
27              
28             Module::Faker::Appendix - a thing that appends
29              
30             =head1 VERSION
31              
32             version 0.025
33              
34             =head1 PERL VERSION
35              
36             This module should work on any version of perl still receiving updates from
37             the Perl 5 Porters. This means it should work on any version of perl released
38             in the last two to three years. (That is, if the most recently released
39             version is v5.40, then this module should work on both v5.40 and v5.38.)
40              
41             Although it may work on older versions of perl, no guarantee is made that the
42             minimum required version will not be increased. The version may be increased
43             for any reason, and there is no promise that patches will be accepted to lower
44             the minimum required perl.
45              
46             =head1 AUTHOR
47              
48             Ricardo Signes <cpan@semiotic.systems>
49              
50             =head1 COPYRIGHT AND LICENSE
51              
52             This software is copyright (c) 2008 by Ricardo Signes.
53              
54             This is free software; you can redistribute it and/or modify it under
55             the same terms as the Perl 5 programming language system itself.
56              
57             =cut