| 1 | package Pod::Weaver::Plugin::PERLANCAR::SortSections; | ||
| 2 | |||
| 3 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 4 | 1 | our $DATE = '2020-02-19'; # DATE | |
| 5 | 1 | our $DIST = 'Pod-Weaver-Plugin-PERLANCAR-SortSections'; # DIST | |
| 6 | 1 | our $VERSION = '0.082'; # VERSION | |
| 7 | |||
| 8 | 1 | ▶ | use 5.010001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | with 'Pod::Weaver::Role::Finalizer'; | |
| 12 | 1 | with 'Pod::Weaver::Role::SortSections'; | |
| 13 | |||
| 14 | 1 | ▶ | use Sort::Sub::pod_section_ala_perlancar; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | 0 | ▶ | sub finalize_document { |
|
Subroutine
finalize_document: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 18 | 0 | my ($self, $document, $input) = @_; | |
| 19 | |||
| 20 | 0 | $self->sort_sections( | |
| 21 | $document, | ||
| 22 | $Sort::Sub::pod_section_ala_perlancar::SORT_SPEC, | ||
| 23 | ); | ||
| 24 | } | ||
| 25 | |||
| 26 | 1 | __PACKAGE__->meta->make_immutable; | |
| 27 | 1 | 1; | |
| 28 | # ABSTRACT: Sort POD sections like PERLANCAR | ||
| 29 | |||
| 30 | __END__ | ||