line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Devel::IPerl::Plugin::CoreDisplay; |
2
|
|
|
|
|
|
|
$Devel::IPerl::Plugin::CoreDisplay::VERSION = '0.008'; |
3
|
2
|
|
|
2
|
|
329
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
55
|
|
4
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
57
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
248
|
use Devel::IPerl::Display::PNG; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
67
|
|
7
|
2
|
|
|
2
|
|
613
|
use Devel::IPerl::Display::SVG; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
70
|
|
8
|
2
|
|
|
2
|
|
611
|
use Devel::IPerl::Display::JPEG; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
56
|
|
9
|
2
|
|
|
2
|
|
558
|
use Devel::IPerl::Display::AudioMPEG; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
378
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub register { |
12
|
2
|
|
|
2
|
0
|
9
|
my ($self, $iperl) = @_; |
13
|
|
|
|
|
|
|
# TODO generalise the plugin registration |
14
|
2
|
|
|
|
|
8
|
for my $name (qw(png svg jpeg audio_mpeg)) { |
15
|
8
|
|
|
1
|
|
45
|
$iperl->helper( $name => sub { shift; $self->$name(@_) } ); |
|
1
|
|
|
1
|
|
608
|
|
|
1
|
|
|
|
|
7
|
|
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
2
|
|
|
2
|
0
|
1001
|
sub png { shift; Devel::IPerl::Display::PNG->new(@_) }; |
|
2
|
|
|
|
|
44
|
|
20
|
0
|
|
|
0
|
0
|
|
sub svg { shift; Devel::IPerl::Display::SVG->new(@_) }; |
|
0
|
|
|
|
|
|
|
21
|
0
|
|
|
0
|
0
|
|
sub jpeg { shift; Devel::IPerl::Display::JPEG->new(@_) }; |
|
0
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
0
|
|
sub audio_mpeg { shift; Devel::IPerl::Display::AudioMPEG->new(@_) }; |
|
0
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=pod |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=encoding UTF-8 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 NAME |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Devel::IPerl::Plugin::CoreDisplay |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 VERSION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
version 0.008 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 AUTHOR |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Zakariyya Mughal <zmughal@cpan.org> |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Zakariyya Mughal. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
50
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |