| 1 | package X11::XRandR::PropertyEDID; | ||
| 2 | |||
| 3 | # ABSTRACT: An EDID Property | ||
| 4 | |||
| 5 | 1 | ▶ | use Types::Standard qw[ ArrayRef InstanceOf Str ]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 1 | ▶ | use MooX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | our $VERSION = '0.01'; | |
| 12 | |||
| 13 | 1 | extends 'X11::XRandR::Property'; | |
| 14 | |||
| 15 | 1 | ▶ | use overload '""' => \&to_string; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | #pod =attr name | ||
| 18 | #pod | ||
| 19 | #pod =cut | ||
| 20 | |||
| 21 | 1 | has name => ( | |
| 22 | is => 'ro', | ||
| 23 | isa => Str, | ||
| 24 | init_arg => undef, | ||
| 25 | default => 'EDID', | ||
| 26 | ); | ||
| 27 | |||
| 28 | #pod =attr value | ||
| 29 | #pod | ||
| 30 | #pod An arrayref of EDID values | ||
| 31 | #pod | ||
| 32 | #pod =cut | ||
| 33 | |||
| 34 | 1 | has value => ( | |
| 35 | is => 'ro', | ||
| 36 | isa => ArrayRef [Str], | ||
| 37 | required => 1, | ||
| 38 | ); | ||
| 39 | |||
| 40 | #pod =method to_string | ||
| 41 | #pod | ||
| 42 | #pod Return a string rendition of the object just as B<xrandr> would. | ||
| 43 | #pod | ||
| 44 | #pod =cut | ||
| 45 | |||
| 46 | 1 | 1; | |
| 47 | |||
| 48 | # | ||
| 49 | # This file is part of X11-XRandR | ||
| 50 | # | ||
| 51 | # This software is Copyright (c) 2018 by Diab Jerius. | ||
| 52 | # | ||
| 53 | # This is free software, licensed under: | ||
| 54 | # | ||
| 55 | # The GNU General Public License, Version 3, June 2007 | ||
| 56 | # | ||
| 57 | |||
| 58 | __END__ | ||