Text::TOC::Node::HTML - Represents a node in an HTML document
version 0.10
This class represents a node from an HTML document which will be included in the table of contents.
This class implements the following methods:
The constructor accepts the following arguments:
type
This is expected to be an HTML tag name, like "h2" or "img".
anchor_name
The name of the anchor associated with this node.
source_file
A Path::Class::File object representing the source file for the node.
contents
An HTML::DOM::Node object representing the node and its contents.
Returns the value as passed to the constructor.
This class does the Text::TOC::Role::Node role.
Dave Rolsky <autarch@urth.org>
This software is copyright (c) 2012 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Text::TOC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::TOC
CPAN shell
perl -MCPAN -e shell install Text::TOC
For more information on module installation, please visit the detailed CPAN module installation guide.