App/ParsedArgv/Value.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« App/Meta/Role/Class/Command.pm ↑ Summary App/Role/Common.pm »
1 # ============================================================================
2 package MooseX::App::ParsedArgv::Value;
3 # ============================================================================
4  
5 17 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 17 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 17 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 17 has 'raw' => (
11 is => 'ro',
12 isa => 'Str',
13 predicate => 'has_raw',
14 );
15  
16 17 has 'value' => (
17 is => 'ro',
18 required => 1,
19 );
20  
21 17 has 'position' => (
22 is => 'ro',
23 isa => 'Int',
24 default => 999,
25 );
26  
27 17 __PACKAGE__->meta->make_immutable();
28 17 1;
29  
30 =pod
31  
32 =head1 NAME
33  
34 MooseX::App::ParsedArgv::Value - Parsed value from @ARGV
35  
36 =head1 DESCRIPTION
37  
38 Every instance of this class represents a value from @ARGV
39  
40 =head1 METHODS
41  
42 =head2 key
43  
44 Parameter value or option key
45  
46 =head2 value
47  
48 Scalar value
49  
50 =head2 raw
51  
52 Raw value as supplied by the user
53  
54 =cut
« App/Meta/Role/Class/Command.pm ↑ Summary App/Role/Common.pm »