File Coverage

blib/lib/Data/Perl/Bool/MooseLike.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Data::Perl::Bool::MooseLike;
2             $Data::Perl::Bool::MooseLike::VERSION = '0.001009';
3             # ABSTRACT: data::Perl::Bool subclass that simulates Moose's native traits.
4              
5 1     1   754 use strictures 1;
  1         1441  
  1         33  
6              
7 1     1   403 use Role::Tiny::With;
  1         215  
  1         38  
8 1     1   376 use Class::Method::Modifiers;
  1         1290  
  1         122  
9              
10             with 'Data::Perl::Role::Bool';
11              
12             my @methods = grep { $_ ne 'new' } Role::Tiny->methods_provided_by('Data::Perl::Role::Bool');
13              
14             around @methods => sub {
15             my $orig = shift;
16              
17             $orig->(\$_[0], @_[1..$#_]);
18             };
19              
20             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
49              
50             =item * L
51              
52             =back
53              
54             =head1 AUTHOR
55              
56             Toby Inkster
57              
58             =head1 COPYRIGHT AND LICENSE
59              
60             This software is copyright (c) 2020 by Matthew Phillips .
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__