Perl/Bool.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Perl/Role/Bool.pm ↑ Summary Perl/Code.pm »
1 package Data::Perl::Bool;
2 9 $Data::Perl::Bool::VERSION = '0.002011';
3 # ABSTRACT: Wrapping class for boolean values.
4  
5 9 ▶use strictures 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 9 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 9 with 'Data::Perl::Role::Bool';
10  
11 9 1;
12  
13 =pod
14  
15 =encoding UTF-8
16  
17 =head1 NAME
18  
19 Data::Perl::Bool - Wrapping class for boolean values.
20  
21 =head1 VERSION
22  
23 version 0.002011
24  
25 =head1 SYNOPSIS
26  
27 use Data::Perl qw/bool/;
28  
29 my $bool = bool(0);
30  
31 $bool->toggle; # 1
32  
33 $bool->unset; # 0
34  
35 =head1 DESCRIPTION
36  
37 This class is a simple consumer of the L<Data::Perl::Role::Bool> role, which
38 provides all functionality. You probably want to look there instead.
39  
40 =head1 AUTHOR
41  
42 Matthew Phillips <mattp@cpan.org>
43  
44 =head1 COPYRIGHT AND LICENSE
45  
46 This software is copyright (c) 2020 by Matthew Phillips <mattp@cpan.org>.
47  
48 This is free software; you can redistribute it and/or modify it under
49 the same terms as the Perl 5 programming language system itself.
50  
51 =cut
52  
53 __END__
« Perl/Role/Bool.pm ↑ Summary Perl/Code.pm »