Text::Decorator::Group - A (possibly nested) group of nodes
my $group = $self->new(@nodes); $self->format_as('html'); $self->nodes
A Group is a set of nodes that live together for some semantic reason - paragraphs in a document, sentences in a paragraph, or whatever.
$self->new(@nodes);
Creates a new Text::Decorator::Group instance.
@nodes = $self->nodes;
Returns the nodes which make up this group.
$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.
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.