The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.