| 1 | |||
| 2 | 2 | ▶ | use 5.010; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | package Perl::PrereqScanner::Scanner::Jojo; | ||
| 7 | 2 | $Perl::PrereqScanner::Scanner::Jojo::VERSION = '0.3.0'; | |
| 8 | # ABSTRACT: Scan for modules loaded with Jojo::Base | ||
| 9 | |||
| 10 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 2 | extends 'Perl::PrereqScanner::Scanner::Mojo'; | |
| 12 | |||
| 13 | 3 | ▶ | sub _is_base_module { $_[1] eq 'Jojo::Base' } |
|
Subroutine
_is_base_module: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 2 | 1; | |
| 16 | |||
| 17 | #pod =encoding utf8 | ||
| 18 | #pod | ||
| 19 | #pod =head1 SYNOPSIS | ||
| 20 | #pod | ||
| 21 | #pod use Perl::PrereqScanner; | ||
| 22 | #pod my $scanner = Perl::PrereqScanner->new( { extra_scanners => ['Jojo'] } ); | ||
| 23 | #pod my $prereqs = $scanner->scan_ppi_document($ppi_doc); | ||
| 24 | #pod my $prereqs = $scanner->scan_file($file_path); | ||
| 25 | #pod my $prereqs = $scanner->scan_string($perl_code); | ||
| 26 | #pod my $prereqs = $scanner->scan_module($module_name); | ||
| 27 | #pod | ||
| 28 | #pod =head1 DESCRIPTION | ||
| 29 | #pod | ||
| 30 | #pod This scanner will look for dependencies from the L<Jojo::Base> module: | ||
| 31 | #pod | ||
| 32 | #pod use Jojo::Base 'SomeBaseClass'; | ||
| 33 | |||
| 34 | __END__ | ||