line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CXC::Form::Tiny::Plugin::OptArgs2::Class; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: Class role for OptArgs2 |
4
|
|
|
|
|
|
|
|
5
|
5
|
|
|
5
|
|
4309
|
use v5.20; |
|
5
|
|
|
|
|
21
|
|
6
|
|
|
|
|
|
|
|
7
|
5
|
|
|
5
|
|
41
|
use warnings; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
214
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.11'; |
10
|
|
|
|
|
|
|
|
11
|
5
|
|
|
5
|
|
2919
|
use Hash::Fold (); |
|
5
|
|
|
|
|
102169
|
|
|
5
|
|
|
|
|
127
|
|
12
|
|
|
|
|
|
|
|
13
|
5
|
|
|
5
|
|
37
|
use Moo::Role; |
|
5
|
|
|
|
|
22
|
|
|
5
|
|
|
|
|
55
|
|
14
|
5
|
|
|
5
|
|
1957
|
use experimental 'signatures', 'postderef'; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
63
|
|
15
|
|
|
|
|
|
|
|
16
|
5
|
|
|
5
|
|
957
|
use namespace::clean; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
74
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
10
|
|
|
10
|
1
|
24471
|
sub optargs ( $self ) { |
|
10
|
|
|
|
|
42
|
|
|
10
|
|
|
|
|
17
|
|
28
|
10
|
|
|
|
|
37
|
return $self->form_meta->optargs; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
2
|
|
|
2
|
1
|
45550
|
sub set_input_from_optargs ( $self, $optargs ) { |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
5
|
|
41
|
|
|
|
|
|
|
# inflate the flat hash into the nested structure and set the |
42
|
|
|
|
|
|
|
# form's input |
43
|
2
|
|
|
|
|
11
|
$self->set_input( $self->inflate_optargs( $optargs ) ); |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
57
|
2
|
|
|
2
|
1
|
6
|
sub inflate_optargs ( $self, $optargs ) { |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
4
|
|
58
|
2
|
|
|
|
|
12
|
return $self->form_meta->inflate_optargs( $optargs ); |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
# |
63
|
|
|
|
|
|
|
# This file is part of CXC-Form-Tiny-Plugin-OptArgs2 |
64
|
|
|
|
|
|
|
# |
65
|
|
|
|
|
|
|
# This software is Copyright (c) 2023 by Smithsonian Astrophysical Observatory. |
66
|
|
|
|
|
|
|
# |
67
|
|
|
|
|
|
|
# This is free software, licensed under: |
68
|
|
|
|
|
|
|
# |
69
|
|
|
|
|
|
|
# The GNU General Public License, Version 3, June 2007 |
70
|
|
|
|
|
|
|
# |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
1; |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
__END__ |