line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MooseX::MethodAttributes::Role::Meta::Method::Wrapped; |
2
|
|
|
|
|
|
|
# ABSTRACT: wrapped metamethod role allowing code attribute introspection |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.32'; |
5
|
|
|
|
|
|
|
|
6
|
19
|
|
|
19
|
|
155
|
use Moose::Role; |
|
19
|
|
|
|
|
98
|
|
|
19
|
|
|
|
|
147
|
|
7
|
|
|
|
|
|
|
|
8
|
19
|
|
|
19
|
|
98262
|
use namespace::autoclean; |
|
19
|
|
|
|
|
61
|
|
|
19
|
|
|
|
|
200
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
#pod =method attributes |
11
|
|
|
|
|
|
|
#pod |
12
|
|
|
|
|
|
|
#pod Gets the list of code attributes of the original method this meta method wraps. |
13
|
|
|
|
|
|
|
#pod |
14
|
|
|
|
|
|
|
#pod =cut |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub attributes { |
17
|
7
|
|
|
7
|
1
|
392
|
my ($self) = @_; |
18
|
7
|
|
|
|
|
32
|
return $self->get_original_method->attributes; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub _get_attributed_coderef { |
22
|
23
|
|
|
23
|
|
57
|
my ($self) = @_; |
23
|
23
|
|
|
|
|
108
|
return $self->get_original_method->_get_attributed_coderef; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=encoding UTF-8 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
MooseX::MethodAttributes::Role::Meta::Method::Wrapped - wrapped metamethod role allowing code attribute introspection |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
version 0.32 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 METHODS |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 attributes |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Gets the list of code attributes of the original method this meta method wraps. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SUPPORT |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-MethodAttributes> |
51
|
|
|
|
|
|
|
(or L<bug-MooseX-MethodAttributes@rt.cpan.org|mailto:bug-MooseX-MethodAttributes@rt.cpan.org>). |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
There is also a mailing list available for users of this distribution, at |
54
|
|
|
|
|
|
|
L<http://lists.perl.org/list/moose.html>. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
There is also an irc channel available for users of this distribution, at |
57
|
|
|
|
|
|
|
L<C<#moose> on C<irc.perl.org>|irc://irc.perl.org/#moose>. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 AUTHORS |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=over 4 |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=item * |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Florian Ragwitz <rafl@debian.org> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item * |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Tomas Doran <bobtfish@bobtfish.net> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=back |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENCE |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This software is copyright (c) 2009 by Florian Ragwitz. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
78
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |