| 1 | package MooseX::Role::Callback::Meta::Trait; | ||
| 2 | |||
| 3 | 4 | our $VERSION = '0.01'; | |
| 4 | |||
| 5 | 4 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | has include_callbacks => ( | ||
| 8 | is => 'ro', | ||
| 9 | isa => 'ArrayRef[CodeRef]', | ||
| 10 | 3 | ▶ | default => sub { [] }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 11 | 4 | ); | |
| 12 | |||
| 13 | 4 | ▶ | before 'apply' => sub { |
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
| |||
| 14 | 4 | my ( $meta, $thing ) = @_; | |
| 15 | 4 | $_->( $meta, $thing ) for @{ $meta->include_callbacks }; | |
| 16 | |||
| 17 | 4 | return; | |
| 18 | 4 | }; | |
| 19 | |||
| 20 | 4 | 1; | |