TextMode/Format/ADF.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/Font/Atari.pm ↑ Summary TextMode/Format/ANSI.pm »
1 package Image::TextMode::Format::ADF;
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 3 ▶ ( is => 'rw', isa => HashRef, default => sub { { version => 1 } } );
Subroutine __ANON__: called CC=1 SCAR=0.0
10  
11 1 ▶sub extensions { return 'adf' }
Subroutine extensions: called CC=1 SCAR=0.0
Pod documented
12  
13 =head1 NAME
14  
15 Image::TextMode::Format::ADF - read and write ADF files
16  
17 =head1 DESCRIPTION
18  
19 ADF stands for "Artworx Data Format".
20  
21 ADF file stucture:
22  
23 +------------+
24 | Version |
25 +------------+
26 | Palette |
27 +------------+
28 | Font |
29 +------------+
30 | Image Data |
31 +------------+
32  
33 =head1 ACCESSORS
34  
35 =over 4
36  
37 =item * header - A header hashref containing a version number
38  
39 =back
40  
41 =head1 METHODS
42  
43 =head2 new( %args )
44  
45 Creates a ADF instance.
46  
47 =head2 extensions( )
48  
49 Returns 'adf'.
50  
51 =head1 AUTHOR
52  
53 Brian Cassidy E<lt>bricas@cpan.orgE<gt>
54  
55 =head1 COPYRIGHT AND LICENSE
56  
57 Copyright 2008-2014 by Brian Cassidy
58  
59 This library is free software; you can redistribute it and/or modify
60 it under the same terms as Perl itself.
61  
62 =cut
63  
64 3 1;
« TextMode/Font/Atari.pm ↑ Summary TextMode/Format/ANSI.pm »