Data/Perl/Bool/MooseLike.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Data/Perl/Collection/Array/MooseLike.pm ↑ Summary Data/Perl/Number/MooseLike.pm »
1 package Data::Perl::Bool::MooseLike;
2 1 $Data::Perl::Bool::MooseLike::VERSION = '0.001009';
3 # ABSTRACT: data::Perl::Bool subclass that simulates Moose's native traits.
4  
5 1 ▶use strictures 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Class::Method::Modifiers;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 with 'Data::Perl::Role::Bool';
11  
12 1 my @methods = grep { $_ ne 'new' } Role::Tiny->methods_provided_by('Data::Perl::Role::Bool');
13  
14 16 ▶around @methods => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
15 16 my $orig = shift;
16  
17 16 $orig->(\$_[0], @_[1..$#_]);
18 1 };
19  
20 1 1;
21  
22 =pod
23  
24 =encoding UTF-8
25  
26 =head1 NAME
27  
28 Data::Perl::Bool::MooseLike - data::Perl::Bool subclass that simulates Moose's native traits.
29  
30 =head1 VERSION
31  
32 version 0.001009
33  
34 =head1 SYNOPSIS
35  
36 # you should not be consuming this class directly.
37  
38 =head1 DESCRIPTION
39  
40 This class provides a wrapper and methods for interacting with a boolean. All
41 methods are written to emulate/match existing behavior that exists with Moose's
42 native traits.
43  
44 =head1 SEE ALSO
45  
46 =over 4
47  
48 =item * L<Data::Perl>
49  
50 =item * L<Data::Perl::Role::Collection::Bool>
51  
52 =back
53  
54 =head1 AUTHOR
55  
56 Toby Inkster <tobyink@cpan.org>
57  
58 =head1 COPYRIGHT AND LICENSE
59  
60 This software is copyright (c) 2020 by Matthew Phillips <mattp@cpan.org>.
61  
62 This is free software; you can redistribute it and/or modify it under
63 the same terms as the Perl 5 programming language system itself.
64  
65 =cut
66  
67 __END__
« Data/Perl/Collection/Array/MooseLike.pm ↑ Summary Data/Perl/Number/MooseLike.pm »