line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package NetApp::Filer::Option; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '500.002'; |
5
|
|
|
|
|
|
|
$VERSION = eval $VERSION; ## no critic: StringyEval |
6
|
|
|
|
|
|
|
|
7
|
7
|
|
|
7
|
|
35
|
use strict; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
215
|
|
8
|
7
|
|
|
7
|
|
34
|
use warnings; |
|
7
|
|
|
|
|
11
|
|
|
7
|
|
|
|
|
179
|
|
9
|
|
|
|
|
|
|
|
10
|
7
|
|
|
7
|
|
32
|
use Class::Std; |
|
7
|
|
|
|
|
21
|
|
|
7
|
|
|
|
|
36
|
|
11
|
7
|
|
|
7
|
|
731
|
use Params::Validate qw( :all ); |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
2386
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
{ |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my %name_of :ATTR( get => 'name' ); |
16
|
|
|
|
|
|
|
my %value_of :ATTR( get => 'value' ); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub BUILD { |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
0
|
|
my ($self,$ident,$args_ref) = @_; |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
|
|
|
my @args = %$args_ref; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
my (%args) = validate( @args, { |
25
|
|
|
|
|
|
|
name => { type => SCALAR }, |
26
|
|
|
|
|
|
|
value => { type => SCALAR }, |
27
|
|
|
|
|
|
|
}); |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
$name_of{$ident} = $args{name}; |
30
|
0
|
|
|
|
|
|
$value_of{$ident} = $args{value}; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |