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
|
|
4548
|
use v5.20; |
|
5
|
|
|
|
|
29
|
|
6
|
|
|
|
|
|
|
|
7
|
5
|
|
|
5
|
|
58
|
use warnings; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
230
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.09'; |
10
|
|
|
|
|
|
|
|
11
|
5
|
|
|
5
|
|
2908
|
use Hash::Fold (); |
|
5
|
|
|
|
|
103013
|
|
|
5
|
|
|
|
|
120
|
|
12
|
|
|
|
|
|
|
|
13
|
5
|
|
|
5
|
|
47
|
use Moo::Role; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
61
|
|
14
|
5
|
|
|
5
|
|
2033
|
use experimental 'signatures', 'postderef'; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
58
|
|
15
|
|
|
|
|
|
|
|
16
|
5
|
|
|
5
|
|
1030
|
use namespace::clean; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
59
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
10
|
|
|
10
|
1
|
24022
|
sub optargs ( $self ) { |
|
10
|
|
|
|
|
25
|
|
|
10
|
|
|
|
|
20
|
|
28
|
10
|
|
|
|
|
64
|
return $self->form_meta->optargs; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
2
|
|
|
2
|
1
|
44664
|
sub set_input_from_optargs ( $self, $optargs ) { |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
4
|
|
41
|
|
|
|
|
|
|
# inflate the flat hash into the nested structure and set the |
42
|
|
|
|
|
|
|
# form's input |
43
|
2
|
|
|
|
|
10
|
$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
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
4
|
|
58
|
2
|
|
|
|
|
10
|
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__ |