| 1 | package Any::Renderer::Data::Printer; | ||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | 2 | ▶ | use Data::Printer alias => '_dp_printer'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 2 | our $VERSION = '0.04'; | |||||||||
| 7 | |||||||||||
| 8 | |||||||||||
| 9 | 2 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||
| 10 | 2 | my ( $class, $format, $options ) = @_; | |||||||||
| 11 | 2 | ▶ | die("Invalid format $format") unless($format eq 'Data::Printer'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 2 | return bless({options=>$options}, $class); | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | |||||||||||
| 16 | 2 | ▶ | sub render { | ||||||||
|
Subroutine
render: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 17 | 2 | my ( $self, $data ) = @_; | |||||||||
| 18 | 2 | return _dp_printer($data, %{$self->{options}}); | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | 1 | ▶ | sub available_formats { | ||||||||
|
Subroutine
available_formats: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 23 | 1 | return [ 'Data::Printer' ]; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | 0 | ▶ | sub requires_template {0}; | ||||||||
|
Subroutine
requires_template: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 28 | |||||||||||
| 29 | 2 | 1; # End of Any::Renderer::Data::Printer | |||||||||
| 30 | |||||||||||
| 31 | __END__ | ||||||||||