line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Autobox::Item; |
2
|
|
|
|
|
|
|
# ABSTRACT: the Item role |
3
|
14
|
|
|
14
|
|
6786
|
use Moose::Role 'requires'; |
|
14
|
|
|
|
|
18
|
|
|
14
|
|
|
|
|
82
|
|
4
|
14
|
|
|
14
|
|
40428
|
use namespace::autoclean; |
|
14
|
|
|
|
|
20
|
|
|
14
|
|
|
|
|
98
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.16'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
requires 'defined'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub dump { |
11
|
12
|
|
|
12
|
1
|
3063
|
my $self = shift; |
12
|
12
|
|
|
|
|
1166
|
require Data::Dumper; |
13
|
12
|
|
|
|
|
9820
|
return Data::Dumper::Dumper($self); |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
*perl = \&dump; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__END__ |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=pod |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=encoding UTF-8 |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 NAME |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Moose::Autobox::Item - the Item role |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 VERSION |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
version 0.16 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 DESCRIPTION |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
This is the root of our role hierarchy. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 METHODS |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=over 4 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item C<meta> |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item C<dump> |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Calls Data::Dumper::Dumper. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item C<perl> |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Same as C<dump>. For symmetry with Perl6's .perl method. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Like &print with newline. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item C<print2> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=back |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 REQUIRED METHODS |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=over 4 |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=item C<defined> |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=back |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 SUPPORT |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=Moose-Autobox> |
69
|
|
|
|
|
|
|
(or L<bug-Moose-Autobox@rt.cpan.org|mailto:bug-Moose-Autobox@rt.cpan.org>). |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
There is also a mailing list available for users of this distribution, at |
72
|
|
|
|
|
|
|
L<http://lists.perl.org/list/moose.html>. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
There is also an irc channel available for users of this distribution, at |
75
|
|
|
|
|
|
|
L<C<#moose> on C<irc.perl.org>|irc://irc.perl.org/#moose>. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 AUTHOR |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Stevan Little <stevan.little@iinteractive.com> |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
This software is copyright (c) 2006 by Infinity Interactive, Inc. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
86
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=cut |