line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Enbld::Target::Attribute::AdditionalArgument; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
4678
|
use strict; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
63
|
|
4
|
2
|
|
|
2
|
|
7
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
46
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
9
|
use parent qw/Enbld::Target::AttributeExtension::Command/; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
13
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub initialize { |
9
|
53
|
|
|
53
|
0
|
96
|
my ( $self, $param ) = @_; |
10
|
|
|
|
|
|
|
|
11
|
53
|
100
|
|
|
|
206
|
if ( ref( $param ) eq 'CODE' ) { |
12
|
3
|
|
|
|
|
3
|
$self->{callback} = $param; |
13
|
3
|
|
|
|
|
6
|
return $self; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
50
|
100
|
|
|
|
152
|
if ( defined $param ) { |
17
|
3
|
|
|
|
|
4
|
$self->{value} = $param; |
18
|
3
|
|
|
|
|
4
|
$self->{is_evaluated}++; |
19
|
|
|
|
|
|
|
|
20
|
3
|
|
|
|
|
5
|
return $self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
$self->{callback} = sub { |
24
|
30
|
|
|
30
|
|
71
|
my $attributes = shift; |
25
|
|
|
|
|
|
|
|
26
|
30
|
50
|
|
|
|
248
|
if ( $^O eq 'darwin' ) { |
27
|
0
|
|
|
|
|
0
|
return $attributes->DarwinArgument; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
30
|
|
|
|
|
211
|
return $attributes->DefaultArgument; |
31
|
47
|
|
|
|
|
300
|
}; |
32
|
|
|
|
|
|
|
|
33
|
47
|
|
|
|
|
107
|
return $self; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub is_omitable { |
38
|
32
|
|
|
32
|
0
|
206
|
return 1; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |