XRandR/Property.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« XRandR.pm ↑ Summary XRandR/PropertyEDID.pm »
1 package X11::XRandR::Property;
2  
3 # ABSTRACT: An output property
4  
5 2 ▶use Types::Standard qw[ ArrayRef InstanceOf Str ];
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use MooX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 our $VERSION = '0.01';
12  
13 2 ▶use overload '""' => \&to_string;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 #pod =attr name
16 #pod
17 #pod =cut
18  
19 2 has name => (
20 is => 'ro',
21 isa => Str,
22 required => 1,
23 );
24  
25 #pod =attr value
26 #pod
27 #pod =cut
28  
29 2 has value => (
30 is => 'ro',
31 isa => Str,
32 required => 1,
33 );
34  
35 #pod =attr supported
36 #pod
37 #pod A list of supported values. Optional.
38 #pod
39 #pod =method has_supported
40 #pod
41 #pod I<Boolean> True if C<supported> was specified
42 #pod
43 #pod =cut
44  
45 2 has supported => (
46 is => 'ro',
47 isa => ArrayRef [Str],
48 predicate => 1,
49 );
50  
51 #pod =method to_string
52 #pod
53 #pod Return a string rendition of the object just as B<xrandr> would.
54 #pod
55 #pod =cut
56  
57  
58 2 1;
59  
60 #
61 # This file is part of X11-XRandR
62 #
63 # This software is Copyright (c) 2018 by Diab Jerius.
64 #
65 # This is free software, licensed under:
66 #
67 # The GNU General Public License, Version 3, June 2007
68 #
69  
70 __END__
« XRandR.pm ↑ Summary XRandR/PropertyEDID.pm »