| 1 | package Devel::IPerl::Plugin::CoreDisplay; | ||
| 2 | 2 | $Devel::IPerl::Plugin::CoreDisplay::VERSION = '0.012'; | |
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | ▶ | use Devel::IPerl::Display::PNG; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 2 | ▶ | use Devel::IPerl::Display::SVG; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 2 | ▶ | use Devel::IPerl::Display::JPEG; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | ▶ | use Devel::IPerl::Display::AudioMPEG; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 2 | ▶ | sub register { |
|
Subroutine
register: called CC=2 SCAR=6.9
Pod
undocumented
| |||
| 12 | 2 | my ($self, $iperl) = @_; | |
| 13 | # TODO generalise the plugin registration | ||
| 14 | 2 | for my $name (qw(png svg jpeg audio_mpeg)) { | |
| 15 | 8 | ▶ | $iperl->helper( $name => sub { shift; $self->$name(@_) } ); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 16 | } | ||
| 17 | } | ||
| 18 | |||
| 19 | 2 | ▶ | sub png { shift; Devel::IPerl::Display::PNG->new(@_) }; |
|
Subroutine
png: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 20 | 0 | ▶ | sub svg { shift; Devel::IPerl::Display::SVG->new(@_) }; |
|
Subroutine
svg: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 21 | 0 | ▶ | sub jpeg { shift; Devel::IPerl::Display::JPEG->new(@_) }; |
|
Subroutine
jpeg: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 22 | 0 | ▶ | sub audio_mpeg { shift; Devel::IPerl::Display::AudioMPEG->new(@_) }; |
|
Subroutine
audio_mpeg: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 23 | |||
| 24 | |||
| 25 | 2 | 1; | |
| 26 | |||
| 27 | __END__ | ||