Daisuke Maki > Text-AutoLink > Text::AutoLink::Plugin

Download:
Text-AutoLink-0.04000.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Text::AutoLink::Plugin - Base Class For Text::AutoLink Plugin

SYNOPSIS ^

  package MyPlugin;
  use strict;
  use base qw(Text::AutoLink::Plugin);
  sub process { ... }

DESCRIPTION ^

Base class for Text::AutoLink Plugin.

METHODS ^

new ARGS

Creates a new plugin instance.

target SCALAR

You can specify the "target" attribute of the resulting link here

process SCALARREF

This method must be overridden in the subclass. It receives a scalar ref, which is the text that you should be modifying.

Returns false if not replacement was performed. Returns true otherwise.

linkfy ARGS

href

The link text.

target

The target text. Overrides the value provided to new()

text

The linked text. The value of 'href' is used if not specified.

syntax highlighting: