| 1 | 1 | ▶ | use Renard::Incunabula::Common::Setup; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | package Intertangle::Jacquard::Actor::Role::DataPrinter; | ||||||||||
| 3 | # ABSTRACT: Role to do Data::Printer things | ||||||||||
| 4 | 1 | $Intertangle::Jacquard::Actor::Role::DataPrinter::VERSION = '0.002'; | |||||||||
| 5 | 1 | ▶ | use Mu::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | requires '_data_printer_internal'; | |||||||||
| 8 | |||||||||||
| 9 | 0 | ▶ | sub _data_printer { | ||||||||
|
Subroutine
_data_printer: not called CC=2 SCAR=11.6
| |||||||||||
| 10 | 0 | my ($self, $prop) = @_; | |||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | use Module::Load; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 1 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.4
| |||||||||||
| 14 | 1 | eval { | |||||||||
| 15 | 1 | autoload Data::Printer::Filter; | |||||||||
| 16 | 0 | autoload Term::ANSIColor; | |||||||||
| 17 | }; | ||||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 0 | my $text = ''; | |||||||||
| 21 | |||||||||||
| 22 | 0 | ▶ | $text .= $prop->{colored} ? "(@{[colored(['green'], ref($self))]}) " : "(@{[ ref($self) ]}) "; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 0 | $text .= Data::Printer::np($self->_data_printer_internal, %$prop, ); | |||||||||
| 24 | |||||||||||
| 25 | 0 | $text; | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 1 | 1; | |||||||||
| 29 | |||||||||||
| 30 | __END__ | ||||||||||