File Coverage

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


line stmt bran cond sub pod time code
1             package Image::TextMode::Format::IDF;
2              
3 3     3   3495 use Moo;
  3         41804  
  3         15  
4 3     3   5652 use Types::Standard qw( HashRef );
  3         166090  
  3         35  
5              
6             extends 'Image::TextMode::Format', 'Image::TextMode::Canvas';
7              
8             has 'header' => (
9             is => 'rw',
10             isa => HashRef,
11             default =>
12             sub { { id => '\x{04}1.4', x0 => 0, y0 => 0, x1 => 0, y1 => 0 } }
13             );
14              
15 1     1 1 345 sub extensions { return 'idf' }
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 Ebricas@cpan.orgE
46              
47             =head1 COPYRIGHT AND LICENSE
48              
49             Copyright 2008-2014 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             1;