« lib/Perl/ToPerl6/Exception/Configuration/Option/Transformer/ExtraParameter.pm
↑ Summary
lib/Perl/ToPerl6/TransformerParameter/Behavior/String.pm »
| 1 | package Perl::ToPerl6::Exception::Configuration::Option::Transformer; | ||||||||||
| 2 | |||||||||||
| 3 | 25 | ▶ | use 5.006001; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 25 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 25 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 25 | ▶ | use Perl::ToPerl6::Utils qw{ &transformer_short_name }; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | #----------------------------------------------------------------------------- | ||||||||||
| 10 | |||||||||||
| 11 | 25 | ▶ | use Exception::Class ( | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 25 | 'Perl::ToPerl6::Exception::Configuration::Option::Transformer' => { | |||||||||
| 13 | isa => 'Perl::ToPerl6::Exception::Configuration::Option', | ||||||||||
| 14 | description => 'A problem with the configuration of a transformer.', | ||||||||||
| 15 | fields => [ qw{ transformer } ], | ||||||||||
| 16 | }, | ||||||||||
| 17 | 25 | ); | |||||||||
| 18 | |||||||||||
| 19 | #----------------------------------------------------------------------------- | ||||||||||
| 20 | |||||||||||
| 21 | 49 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 22 | 49 | my ($class, %options) = @_; | |||||||||
| 23 | |||||||||||
| 24 | 49 | my $transformer = $options{transformer}; | |||||||||
| 25 | 49 | ▶ | if ($transformer) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 47 | $options{transformer} = transformer_short_name($transformer); | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 49 | return $class->SUPER::new(%options); | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | |||||||||||
| 33 | 25 | 1; | |||||||||
| 34 | |||||||||||
| 35 | __END__ | ||||||||||