File Coverage

blib/lib/Image/TextMode/Format/IDF.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             package Image::TextMode::Format::IDF;
2              
3 3     3   4258 use Moose;
  0            
  0            
4              
5             extends 'Image::TextMode::Format', 'Image::TextMode::Canvas';
6              
7             has 'header' => (
8             is => 'rw',
9             isa => 'HashRef',
10             default =>
11             sub { { id => '\x{04}1.4', x0 => 0, y0 => 0, x1 => 0, y1 => 0 } }
12             );
13              
14             sub extensions { return 'idf' }
15              
16             no Moose;
17              
18             __PACKAGE__->meta->make_immutable;
19              
20             =head1 NAME
21              
22             Image::TextMode::Format::IDF - read and write IDF files
23              
24             =head1 DESCRIPTION
25              
26             The IDF format.
27              
28             =head1 ACCESSORS
29              
30             =over 4
31              
32             =item * header - A header hashref containing an id, and x0, y0, x1, y1 canvas info
33              
34             =back
35              
36             =head1 METHODS
37              
38             =head2 new( %args )
39              
40             Creates a IDF instance.
41              
42             =head2 extensions( )
43              
44             Returns 'idf'.
45              
46             =head1 AUTHOR
47              
48             Brian Cassidy E<lt>bricas@cpan.orgE<gt>
49              
50             =head1 COPYRIGHT AND LICENSE
51              
52             Copyright 2008-2013 by Brian Cassidy
53              
54             This library is free software; you can redistribute it and/or modify
55             it under the same terms as Perl itself.
56              
57             =cut
58              
59             1;