« lib/Serge/Engine/Plugin/Transform/whitespace.pm
↑ Summary
lib/Serge/Engine/Plugin/Base/Serializer.pm »
| 1 | package Serge::Engine::Plugin::Base::Transform; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | sub name { | ||
| 6 | 0 | ▶ | return 'Base string transformation plugin'; |
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 7 | } | ||
| 8 | |||
| 9 | sub new { | ||
| 10 | 0 | ▶ | my ($class) = @_; |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 11 | |||
| 12 | 0 | my $self = {}; | |
| 13 | |||
| 14 | 0 | bless($self, $class); | |
| 15 | |||
| 16 | 0 | $self->init; | |
| 17 | |||
| 18 | 0 | return $self; | |
| 19 | } | ||
| 20 | |||
| 21 | # virtual method | ||
| 22 | ▶ | sub init {} | |
|
Subroutine
init: not called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 23 | |||
| 24 | # virtual method | ||
| 25 | # remove all non-relevant characters that should not be included | ||
| 26 | # in key comparison | ||
| 27 | sub filter_key { | ||
| 28 | 0 | ▶ | my ($self, $s) = @_; |
|
Subroutine
filter_key: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 29 | 0 | return $s; | |
| 30 | } | ||
| 31 | |||
| 32 | # virtual method | ||
| 33 | # transform string `$s` based on optionally provided `$target` string | ||
| 34 | sub transform { | ||
| 35 | 0 | ▶ | my ($self, $s, $target) = @_; |
|
Subroutine
transform: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 36 | 0 | return $s; | |
| 37 | } | ||
| 38 | |||
| 39 | 1 | 1; # return true | |