line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Nephia::Context; |
2
|
14
|
|
|
14
|
|
25888
|
use strict; |
|
14
|
|
|
|
|
23
|
|
|
14
|
|
|
|
|
454
|
|
3
|
14
|
|
|
14
|
|
68
|
use warnings; |
|
14
|
|
|
|
|
28
|
|
|
14
|
|
|
|
|
16381
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub new { |
6
|
28
|
|
|
28
|
1
|
718
|
my ($class, %opts) = @_; |
7
|
28
|
|
|
|
|
167
|
return bless {%opts}, $class; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub get { |
11
|
76
|
|
|
76
|
1
|
886
|
my ($self, $key) = @_; |
12
|
76
|
|
|
|
|
285
|
return $self->{$key}; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub set { |
16
|
56
|
|
|
56
|
1
|
4459
|
my ($self, $key, $val) = @_; |
17
|
56
|
|
|
|
|
183
|
return $self->{$key} = $val; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub delete { |
21
|
1
|
|
|
1
|
1
|
3
|
my ($self, $key) = @_; |
22
|
1
|
|
|
|
|
3
|
delete $self->{$key}; |
23
|
1
|
|
|
|
|
3
|
return; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |