| 1 | package MooseX::MethodAttributes::Role::Meta::Method::Wrapped; | ||
| 2 | # ABSTRACT: wrapped metamethod role allowing code attribute introspection | ||
| 3 | |||
| 4 | 19 | our $VERSION = '0.32'; | |
| 5 | |||
| 6 | 19 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 19 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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 | 7 | ▶ | sub attributes { |
|
Subroutine
attributes: called CC=1 SCAR=0.0
Pod
documented
| |||
| 17 | 7 | my ($self) = @_; | |
| 18 | 7 | return $self->get_original_method->attributes; | |
| 19 | } | ||
| 20 | |||
| 21 | 23 | ▶ | sub _get_attributed_coderef { |
|
Subroutine
_get_attributed_coderef: called CC=1 SCAR=0.0
| |||
| 22 | 23 | my ($self) = @_; | |
| 23 | 23 | return $self->get_original_method->_get_attributed_coderef; | |
| 24 | } | ||
| 25 | |||
| 26 | 19 | 1; | |
| 27 | |||
| 28 | __END__ | ||