Text::Decorator::Filter - Base class for text decorator filters
This is the base class that all filters should inherit from.
This base class provides the all-important filter method that you really don't want to implement yourself. Instead, you should provide one of these methods:
filter
This should simply modify $_. It's called once for each representation, with the representation as the first parameter to the method.
$_
This gets called as
$class->filter_node($args, $node)
for every textual node, and is expected to return one or more modified node objects.
There's also filter_group which you may want to provide, which does the same but for Group objects.
filter_group
Group
This is the same, but gets called for both Group and Node objects.
To install Text::Decorator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Decorator
CPAN shell
perl -MCPAN -e shell install Text::Decorator
For more information on module installation, please visit the detailed CPAN module installation guide.