SHARYANTO::Role::Doc::Section - Role for class that generates documentation with sections
version 0.19
SHARYANTO::Role::Doc::Section is a role for classes that produce documentation with sections. This role provides a workflow for parsing and generating sections, regulating indentation, and a generate_doc() method.
generate_doc()
To generate documentation, first you provide a list of section names in doc_sections. Then you run generate_doc(), which will call doc_parse_SECTION and doc_gen_SECTION methods for each section consecutively. doc_parse_* is supposed to parse information from some source into a form readily usable in $self->doc_parse hash. doc_gen_* is supposed to generate the actual section in the final documentation format, by calling add_doc_lines to add text. Finally all the added lines is concatenated together and returned.
doc_sections
doc_parse_SECTION
doc_gen_SECTION
doc_parse_*
doc_gen_*
add_doc_lines
This module uses Log::Any for logging.
This module uses Moo for object system.
Character(s) used for indent.
This module is used, among others, by: Perinci::To::* modules.
Perinci::To::*
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2012 by Steven Haryanto.
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 SHARYANTO::Utils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SHARYANTO::Utils
CPAN shell
perl -MCPAN -e shell install SHARYANTO::Utils
For more information on module installation, please visit the detailed CPAN module installation guide.