line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Perl::Number::MooseLike; |
2
|
|
|
|
|
|
|
$Data::Perl::Number::MooseLike::VERSION = '0.001007'; |
3
|
|
|
|
|
|
|
# ABSTRACT: data::Perl::Number subclass that simulates Moose's native traits. |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
488
|
use strictures 1; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
20
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
468
|
use Role::Tiny::With; |
|
1
|
|
|
|
|
3772
|
|
|
1
|
|
|
|
|
54
|
|
8
|
1
|
|
|
1
|
|
494
|
use Class::Method::Modifiers; |
|
1
|
|
|
|
|
1196
|
|
|
1
|
|
|
|
|
176
|
|
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.001007 |
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__ |