| 1 | package PLS::Parser::Pod::Builtin; | ||||||||||
| 2 | |||||||||||
| 3 | 15 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 15 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 15 | ▶ | use parent 'PLS::Parser::Pod'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | =head1 NAME | ||||||||||
| 9 | |||||||||||
| 10 | PLS::Parser::Pod::Builtin | ||||||||||
| 11 | |||||||||||
| 12 | =head1 DESCRIPTION | ||||||||||
| 13 | |||||||||||
| 14 | This attempts to find POD for a Perl builtin functions or keywords. | ||||||||||
| 15 | |||||||||||
| 16 | =cut | ||||||||||
| 17 | |||||||||||
| 18 | sub new | ||||||||||
| 19 | 0 | ▶ | { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 20 | 0 | my ($class, @args) = @_; | |||||||||
| 21 | |||||||||||
| 22 | 0 | my %args = @args; | |||||||||
| 23 | 0 | my $self = $class->SUPER::new(%args); | |||||||||
| 24 | 0 | $self->{function} = $args{function}; | |||||||||
| 25 | |||||||||||
| 26 | 0 | return $self; | |||||||||
| 27 | } ## end sub new | ||||||||||
| 28 | |||||||||||
| 29 | sub find | ||||||||||
| 30 | 0 | ▶ | { | ||||||||
|
Subroutine
find: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 31 | 0 | my ($self) = @_; | |||||||||
| 32 | |||||||||||
| 33 | 0 | my ($ok, $markdown) = $self->run_perldoc_command('-Tuf', $self->{function}); | |||||||||
| 34 | |||||||||||
| 35 | 0 | ▶ | $self->{markdown} = $markdown if $ok; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 36 | 0 | return $ok; | |||||||||
| 37 | } ## end sub find | ||||||||||
| 38 | |||||||||||
| 39 | 15 | 1; | |||||||||