Tony Bowden > Text-Decorator-1.65 > Text::Decorator::Node

Download:
Text-Decorator-1.65.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
Stalled  1
View/Report Bugs
Source  

NAME ^

Text::Decorator::Node - A blob of text in a Text::Decorator decoration

SYNOPSIS ^

        my $node = Text::Decorator::Node->new($text);
        $node->format_as("html");

DESCRIPTION ^

This represents a piece of text which is going to undergo formatting and decoration.

METHODS ^

new

        my $node = Text::Decorator::Node->new($text);

Creates a new Text::Decorator::Node instance with the specified text.

format_as

        $node->format_as($representation)

Returns this node in the specified representation, or plain text.

syntax highlighting: