line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Image::TextMode::Format::Tundra; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
4122
|
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 => sub { { int_id => 24, id => 'TUNDRA24' } } |
11
|
|
|
|
|
|
|
); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has '+render_options' => ( default => sub { { truecolor => 1 } } ); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub extensions { return 'tnd' } |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
no Moose; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Image::TextMode::Format::Tundra - read and write Tundra files |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 DESCRIPTION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
The Tundra format. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 ACCESSORS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=over 4 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=item * header - A header hashref containing a version number and id |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=back |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 METHODS |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head2 new( %args ) |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Creates a Tundra instance. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head2 extensions( ) |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Returns 'tnd'. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 AUTHOR |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Brian Cassidy E<lt>bricas@cpan.orgE<gt> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Copyright 2008-2013 by Brian Cassidy |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
56
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |