line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MouseX::POE::Meta::Role; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
2
|
|
|
2
|
|
49
|
$MouseX::POE::Meta::Role::VERSION = '0.214'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
# ABSTRACT: Pay no attention to this. |
6
|
2
|
|
|
2
|
|
781
|
use Mouse::Role; |
|
2
|
|
|
|
|
32541
|
|
|
2
|
|
|
|
|
20
|
|
7
|
|
|
|
|
|
|
with qw(MouseX::POE::Meta::Trait); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
around default_events => sub { |
10
|
|
|
|
|
|
|
my ( $orig, $self ) = @_; |
11
|
|
|
|
|
|
|
my $events = $orig->($self); |
12
|
|
|
|
|
|
|
push @$events, grep { s/^on_(\w+)/$1/; } $self->get_method_list; |
13
|
|
|
|
|
|
|
return $events; |
14
|
|
|
|
|
|
|
}; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
around get_state_method_name => sub { |
17
|
|
|
|
|
|
|
my ( $orig, $self, $name ) = @_; |
18
|
|
|
|
|
|
|
return 'on_' . $name if $self->has_method( 'on_' . $name ); |
19
|
|
|
|
|
|
|
return $orig->( $self, $name ); |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
2
|
|
|
2
|
|
8173
|
no Mouse::Role; |
|
2
|
|
|
|
|
15
|
|
|
2
|
|
|
|
|
21
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |