| 1 | package MouseX::POE::Meta::Role; | ||||||||||
| 2 | 4 | $MouseX::POE::Meta::Role::VERSION = '0.216'; | |||||||||
| 3 | # ABSTRACT: Pay no attention to this. | ||||||||||
| 4 | 4 | ▶ | use Mouse::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 4 | with qw(MouseX::POE::Meta::Trait); | |||||||||
| 6 | |||||||||||
| 7 | 0 | ▶ | around default_events => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 8 | 0 | my ( $orig, $self ) = @_; | |||||||||
| 9 | 0 | my $events = $orig->($self); | |||||||||
| 10 | 0 | push @$events, grep { s/^on_(\w+)/$1/; } $self->get_method_list; | |||||||||
| 11 | 0 | return $events; | |||||||||
| 12 | 4 | }; | |||||||||
| 13 | |||||||||||
| 14 | 0 | ▶ | around get_state_method_name => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 15 | 0 | my ( $orig, $self, $name ) = @_; | |||||||||
| 16 | 0 | ▶ | return 'on_' . $name if $self->has_method( 'on_' . $name ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 0 | return $orig->( $self, $name ); | |||||||||
| 18 | 4 | }; | |||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | 4 | ▶ | no Mouse::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | |||||||||||
| 23 | 4 | 1; | |||||||||
| 24 | |||||||||||
| 25 | __END__ | ||||||||||