summaryrefslogtreecommitdiff
path: root/rt/lib/RT/Pod/Search.pm
blob: d6ddd2dafb4b06c330d5e6693462612d9c712856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;

package RT::Pod::Search;
use base 'Pod::Simple::Search';

sub new {
    my $self = shift->SUPER::new(@_);
       $self->laborious(1)              # Find scripts too
            ->limit_re(qr/(?<!\.in)$/)  # Filter out .in files
            ->inc(0);                   # Don't look in @INC
    return $self;
}

1;