File Coverage

blib/lib/Image/TextMode/Format/ANSI.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::ANSI;
2              
3 7     7   12371 use Moose;
  0            
  0            
4              
5             extends 'Image::TextMode::Format', 'Image::TextMode::Canvas';
6              
7             use Image::TextMode::Palette::ANSI;
8              
9             has '+palette' => ( default => sub { Image::TextMode::Palette::ANSI->new } );
10              
11             has '+render_options' => ( default => sub { { blink_mode => 1 } } );
12              
13             sub extensions { return 'ans', 'cia', 'ice' }
14              
15             no Moose;
16              
17             __PACKAGE__->meta->make_immutable;
18              
19             =head1 NAME
20              
21             Image::TextMode::Format::ANSI - read and write ANSI files
22              
23             =head1 DESCRIPTION
24              
25             ANSI is a text-based image format that uses escape sequences to give the
26             parser a particular command.
27              
28             =head1 METHODS
29              
30             =head2 new( %args )
31              
32             Creates a ANSI instance.
33              
34             =head2 extensions( )
35              
36             Returns 'ans', 'cia', 'ice'.
37              
38             =head1 AUTHOR
39              
40             Brian Cassidy E<lt>bricas@cpan.orgE<gt>
41              
42             =head1 COPYRIGHT AND LICENSE
43              
44             Copyright 2008-2013 by Brian Cassidy
45              
46             This library is free software; you can redistribute it and/or modify
47             it under the same terms as Perl itself.
48              
49             =cut
50              
51             1;