line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Perl::Number::MooseLike; |
2
|
|
|
|
|
|
|
$Data::Perl::Number::MooseLike::VERSION = '0.001009'; |
3
|
|
|
|
|
|
|
# ABSTRACT: data::Perl::Number subclass that simulates Moose's native traits. |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
949
|
use strictures 1; |
|
1
|
|
|
|
|
1409
|
|
|
1
|
|
|
|
|
35
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
429
|
use Role::Tiny::With; |
|
1
|
|
|
|
|
217
|
|
|
1
|
|
|
|
|
41
|
|
8
|
1
|
|
|
1
|
|
383
|
use Class::Method::Modifiers; |
|
1
|
|
|
|
|
1328
|
|
|
1
|
|
|
|
|
118
|
|
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.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__ |