NAME

ASCOPE::Class::Text::Collection - Aaron's class thingy for holding a bunch of ASCOPE::Class::Text::* thingies.


SYNOPSIS

 use ASCOPE::Class::Text;
 use ASCOPE::Class::Text::CDATA;
 use ASCOPE::Class::Text::Collection;
 my $collection = ASCOPE::Class::Text::Collection->new();
 $collection->add(ASCOPE::Class::Text->new("ook"));
 $collection->add(ASCOPE::Class::Text::CDATA->new("ook"));
 $collection->add(ASCOPE::Class::Text->new("ook"));
 print $collection;
 # prints:
 # ook <![CDATA[ook]]> ook


DESCRIPTION

Aaron's class thingy for holding a bunch of ASCOPE::Class::Text::* thingies.

Override the object's ``'' operator to join all of the elements passed to the object and return a string.


PACKAGE METHODS

__PACKAGE__->new(@stuff)

Returns an object. Woot!


OBJECT METHODS

$obj->add(@stuff)

Add one or more elements to the object.


VERSION

1.0


DATE

$Date: 2003/03/12 02:33:31 $


SEE ALSO

the ASCOPE::Class::Text manpage


LICENSE

Copyright (c) 2003, Aaron Straup Cope. All Rights Reserved.

This is free software, you may use it and distribute it under the same terms as Perl itself.