Text::TOC::Role::Node - A role for nodes
This role defines the API and partial implementation for nodes. A node represents an item of interest from the original document that will be included in the table of contents.
This role is parameterzed, and requires a single parameter:
This is the type of the contents attribute. It should be passed as either a string or a type constraint object.
This role provides the following attributes:
This is a string. What this represents will depend on the class which consumes this role.
The name of the anchor associated with this node.
A Path::Class::File object representing the source file for the node.
The contents of the node. Exactly what this is depends on the class consuming this role.
Dave Rolsky <firstname.lastname@example.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.