NAME
SHARYANTO::Role::Doc::Section::AddTextLines - Provide add_doc_lines() to add text with optional text wrapping
VERSION
version 0.72
DESCRIPTION
This role provides add_doc_lines()
which can add optionally wrapped text to doc_lines
.
The default column width for wrapping is from COLUMNS
environment variable, or 80.
ATTRIBUTES
doc_wrap => BOOL (default: 1)
Whether to do text wrapping.
REQUIRES
These methods are provided by, e.g. SHARYANTO::Role::Doc::Section.
$o->doc_lines()
$o->doc_indent_level()
$o->doc_lines_str()
METHODS
$o->add_doc_lines([\%opts, ]@lines)
Add lines of text, optionally wrapping each line if wrapping is enabled.
Available options:
wrap => BOOL
Whether to enable wrapping. Default is from the
doc_wrap
attribute.
ENVIRONMENT
COLUMNS => INT
Used to set column width.
SEE ALSO
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/SHARYANTO-Roles.
SOURCE
Source repository is at https://github.com/sharyanto/perl-SHARYANTO-Roles.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=SHARYANTO-Roles
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 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.