File Coverage

blib/lib/Module/Faker/Appendix.pm
Criterion Covered Total %
statement 5 5 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 7 7 100.0


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