TextMode/Format/IDF.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« TextMode/Format/Bin.pm ↑ Summary TextMode/Format/PCBoard.pm »
1 package Image::TextMode::Format::IDF;
2  
3 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use Types::Standard qw( HashRef );
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 extends 'Image::TextMode::Format', 'Image::TextMode::Canvas';
7  
8 has 'header' => (
9 is => 'rw',
10 isa => HashRef,
11 default =>
12 3 ▶ sub { { id => '\x{04}1.4', x0 => 0, y0 => 0, x1 => 0, y1 => 0 } }
Subroutine __ANON__: called CC=1 SCAR=0.0
13 3 );
14  
15 1 ▶sub extensions { return 'idf' }
Subroutine extensions: called CC=1 SCAR=0.0
Pod documented
16  
17 =head1 NAME
18  
19 Image::TextMode::Format::IDF - read and write IDF files
20  
21 =head1 DESCRIPTION
22  
23 The IDF format.
24  
25 =head1 ACCESSORS
26  
27 =over 4
28  
29 =item * header - A header hashref containing an id, and x0, y0, x1, y1 canvas info
30  
31 =back
32  
33 =head1 METHODS
34  
35 =head2 new( %args )
36  
37 Creates a IDF instance.
38  
39 =head2 extensions( )
40  
41 Returns 'idf'.
42  
43 =head1 AUTHOR
44  
45 Brian Cassidy E<lt>bricas@cpan.orgE<gt>
46  
47 =head1 COPYRIGHT AND LICENSE
48  
49 Copyright 2008-2015 by Brian Cassidy
50  
51 This library is free software; you can redistribute it and/or modify
52 it under the same terms as Perl itself.
53  
54 =cut
55  
56 3 1;
« TextMode/Format/Bin.pm ↑ Summary TextMode/Format/PCBoard.pm »