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

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::Group - A (possibly nested) group of nodes

SYNOPSIS ^

        my $group = $self->new(@nodes);
        $self->format_as('html');
        $self->nodes

DESCRIPTION ^

A Group is a set of nodes that live together for some semantic reason - paragraphs in a document, sentences in a paragraph, or whatever.

METHODS ^

new

        $self->new(@nodes);

Creates a new Text::Decorator::Group instance.

nodes

        @nodes = $self->nodes;

Returns the nodes which make up this group.

format_as

        $self->format_as("html")

Descend into the group, formatting each node, stringing the pieces together and returning the result, optionally adding some pre- and post- representation-specific material.

syntax highlighting: