File Coverage

blib/lib/Data/Perl/Number/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::Number::MooseLike;
2             $Data::Perl::Number::MooseLike::VERSION = '0.001008';
3             # ABSTRACT: data::Perl::Number subclass that simulates Moose's native traits.
4              
5 1     1   454 use strictures 1;
  1         7  
  1         33  
6              
7 1     1   503 use Role::Tiny::With;
  1         191  
  1         35  
8 1     1   364 use Class::Method::Modifiers;
  1         1002  
  1         109  
9              
10             with 'Data::Perl::Role::Number';
11              
12             my @methods = grep { $_ ne 'new' } Role::Tiny->methods_provided_by('Data::Perl::Role::Number');
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::Number::MooseLike - data::Perl::Number subclass that simulates Moose's native traits.
29              
30             =head1 VERSION
31              
32             version 0.001008
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             Matthew Phillips
57              
58             =head1 COPYRIGHT AND LICENSE
59              
60             This software is copyright (c) 2015 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__