OODoc::Text::Section - collects the text of one section within a chapter
OODoc::Text::Section is a OODoc::Text::Structure is a OODoc::Text is a OODoc::Object
my $chapter = $section->chapter; my @subsect = $section->subsections; my $index = $section->subsection('INDEX'); my $index = OODoc::Text::SubSection->new(...); $section->subsection($index); # add subsection
overload: '""' (stringification)
See "OVERLOADED" in OODoc::Text
overload: '==' and '!='
overload: 'cmp' (string comparison)
$obj->emptyExtension(CONTAINER)
See "Constructors" in OODoc::Text::Structure
OODoc::Text::Section->new(OPTIONS)
Option --Defined in --Default chapter <required> container OODoc::Text new(chapter) description OODoc::Text '' level OODoc::Text::Structure 2 linenr OODoc::Text <required> name OODoc::Text undef type OODoc::Text 'Section'
. chapter => OBJECT
. container => OBJECT
. description => STRING
. level => INTEGER
. linenr => INTEGER
. name => STRING
. type => STRING
$obj->extends([OBJECT])
See "Inheritance knowledge" in OODoc::Object
$obj->container([OBJECT])
See "Attributes" in OODoc::Text
$obj->description
$obj->level
See "Attributes" in OODoc::Text::Structure
$obj->name
$obj->niceName
$obj->type
$obj->chapter
Returns the chapter object for this section.
$obj->findEntry(NAME)
See "Location" in OODoc::Text::Structure
$obj->manual([NAME])
See "Location" in OODoc::Text
$obj->path
$obj->unique
$obj->where
$obj->all(METHOD, PARAMETERS)
See "Collected" in OODoc::Text::Structure
$obj->example(OBJECT)
See "Collected" in OODoc::Text
$obj->examples
$obj->findDescriptionObject
$obj->isEmpty
$obj->openDescription
$obj->addSubroutine(OBJECTS)
See "Subroutines" in OODoc::Text::Structure
$obj->setSubroutines(ARRAY)
$obj->subroutine(NAME)
$obj->subroutines
$obj->subsection(NAME|OBJECT)
With a NAME, the subsection within this section with that name is returned. With an OBJECT (which must be a OODoc::Text::SubSection), a new subsection is added to the end of the list.
$obj->subsections([SUBSECTIONS])
Returns a list of all subsections in this chapter.
$obj->filenameToPackage(FILENAME)
OODoc::Text::Section->filenameToPackage(FILENAME)
See "Commonly used functions" in OODoc::Object
$obj->mkdirhier(DIRECTORY)
OODoc::Text::Section->mkdirhier(DIRECTORY)
$obj->addManual(MANUAL)
See "Manual Repository" in OODoc::Object
$obj->mainManual(NAME)
$obj->manuals
$obj->manualsForPackage(NAME)
$obj->packageNames
Error: manual definition requires manual object
A call to addManual() expects a new manual object (a OODoc::Manual), however an incompatible thing was passed. Usually, intended was a call to manualsForPackage() or mainManual().
This module is part of OODoc distribution version 1.04, built on June 12, 2008. Website: http://perl.overmeer.net/oodoc/
Copyrights 2003-2008 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html
To install OODoc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OODoc
CPAN shell
perl -MCPAN -e shell install OODoc
For more information on module installation, please visit the detailed CPAN module installation guide.