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