| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Thunderhorse::AppController; |
|
2
|
|
|
|
|
|
|
$Thunderhorse::AppController::VERSION = '0.102'; |
|
3
|
21
|
|
|
21
|
|
378
|
use v5.40; |
|
|
21
|
|
|
|
|
84
|
|
|
4
|
21
|
|
|
21
|
|
141
|
use Mooish::Base -standard; |
|
|
21
|
|
|
|
|
66
|
|
|
|
21
|
|
|
|
|
339
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
extends 'Thunderhorse::Controller'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
26
|
|
|
|
|
38
|
sub _run_method ($self, $method, @args) |
|
|
26
|
|
|
|
|
127
|
|
|
9
|
26
|
|
|
26
|
|
46
|
{ |
|
|
26
|
|
|
|
|
69
|
|
|
|
26
|
|
|
|
|
41
|
|
|
10
|
26
|
50
|
|
|
|
63
|
die "no such method $method" |
|
11
|
|
|
|
|
|
|
unless ref $self; |
|
12
|
|
|
|
|
|
|
|
|
13
|
26
|
100
|
|
|
|
264
|
if ($self->app->can($method)) { |
|
14
|
10
|
|
|
|
|
32
|
return $self->app->$method(@args); |
|
15
|
|
|
|
|
|
|
} |
|
16
|
|
|
|
|
|
|
|
|
17
|
16
|
|
|
|
|
86
|
return $self->SUPER::_run_method($method, @args); |
|
18
|
|
|
|
|
|
|
} |
|
19
|
|
|
|
|
|
|
|
|
20
|
63
|
|
|
|
|
104
|
sub _can_method ($self, $method) |
|
21
|
63
|
|
|
63
|
|
107
|
{ |
|
|
63
|
|
|
|
|
132
|
|
|
|
63
|
|
|
|
|
97
|
|
|
22
|
|
|
|
|
|
|
# this returns app's can on purpose, to achieve app method being run by |
|
23
|
|
|
|
|
|
|
# controller object. |
|
24
|
63
|
|
66
|
|
|
788
|
return $self->app->can($method) |
|
25
|
|
|
|
|
|
|
// $self->SUPER::_can_method($method); |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |