logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Pod::Index::Entry - Represents Pod search result

Author

       Ivan Tubert-Brohman <itub@cpan.org>

Description

       This class represents a POD index entry. An entry is defined by the podname/filename, line number, and
       context. The entry object also has the ability to extract the POD "scope" from the filename.

Methods

       new
               my $q = Pod::Index::Entry->new(%args);

           Create a new search object. Possible arguments are:

           podname
               The name of the pod, such as .

           filename
               The filename for the pod, such as Data/Dumper.pm.

           line
               The line number where the scope of this entry begins.

           context
               The title of the section that contains this entry.

       podname
       filename
       line
       context
           These  are  just  simple  accessors  that  return  the  value  of  these  properties, as given to the
           constructor.

       pod Extracts the POD for the scope of the entry from $self->filename, beginning  at  $self->line.  For  a
           definition  of  scope,  see  Pod::Index.  The  POD extraction is delegated to the Pod::Index::Extract
           module.

Name

       Pod::Index::Entry - Represents Pod search result

See Also

       Pod::Index, Pod::Index::Search, Pod::Index::Extract

Synopsis

           use Pod::Index::Entry;

           my $entry =  Pod::Index::Entry->new(
               keyword  => 'constructors',
               podname  => 'perlobj',
               line     => 42,
               filename => '/usr/lib/perl5/5.8.7/pod/perlobj.pod',
               context  => 'Using POD',
           );

           # trivial accessors
           my $podname  = $entry->podname;
           my $filename = $entry->filename;
           my $line     = $entry->line;
           my $context  = $entry->context;
           my $keyword  = $entry->keyword;

           # extract the POD for this entry
           my $pod      = $entry->pod;

Version

       0.14

See Also