| 1 | #============================================================= -*-Perl-*- | ||
| 2 | # | ||
| 3 | # Pod::POM::Node::Over | ||
| 4 | # | ||
| 5 | # DESCRIPTION | ||
| 6 | # Module implementing specific nodes in a Pod::POM, subclassed from | ||
| 7 | # Pod::POM::Node. | ||
| 8 | # | ||
| 9 | # AUTHOR | ||
| 10 | # Andy Wardley <abw@kfs.org> | ||
| 11 | # Andrew Ford <a.ford@ford-mason.co.uk> | ||
| 12 | # | ||
| 13 | # COPYRIGHT | ||
| 14 | # Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved. | ||
| 15 | # Copyright (C) 2009 Andrew Ford. All Rights Reserved. | ||
| 16 | # | ||
| 17 | # This module is free software; you can redistribute it and/or | ||
| 18 | # modify it under the same terms as Perl itself. | ||
| 19 | # | ||
| 20 | # REVISION | ||
| 21 | # $Id: Over.pm 89 2013-05-30 07:41:52Z ford $ | ||
| 22 | # | ||
| 23 | #======================================================================== | ||
| 24 | |||
| 25 | package Pod::POM::Node::Over; | ||
| 26 | 18 | $Pod::POM::Node::Over::VERSION = '2.01'; | |
| 27 | 18 | require 5.006; | |
| 28 | 18 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | 18 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | |||
| 31 | 18 | ▶ | use parent qw( Pod::POM::Node ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 32 | |||
| 33 | 18 | our @ATTRIBS = ( indent => 4 ); | |
| 34 | 18 | our @ACCEPT = qw( over item begin for text verbatim code ); | |
| 35 | 18 | our $EXPECT = 'back'; | |
| 36 | |||
| 37 | 0 | ▶ | sub list_type { |
|
Subroutine
list_type: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 38 | 0 | my $self = shift; | |
| 39 | 0 | my ($first, @rest) = $self->content; | |
| 40 | |||
| 41 | 0 | my $first_type = $first->type; | |
| 42 | 0 | return; | |
| 43 | } | ||
| 44 | |||
| 45 | |||
| 46 | 18 | 1; | |
| 47 | |||
| 48 | =head1 NAME | ||
| 49 | |||
| 50 | Pod::POM::Node::Over - POM '=over' node class | ||
| 51 | |||
| 52 | =head1 SYNOPSIS | ||
| 53 | |||
| 54 | use Pod::POM::Nodes; | ||
| 55 | |||
| 56 | =head1 DESCRIPTION | ||
| 57 | |||
| 58 | This class implements '=over' Pod nodes. As described by the L<perlpodspec> man page =over/=back regions are | ||
| 59 | used for various kinds of list-like structures (including blockquote paragraphs). | ||
| 60 | |||
| 61 | =item 1. | ||
| 62 | |||
| 63 | ordered list | ||
| 64 | |||
| 65 | =item * | ||
| 66 | |||
| 67 | text paragraph | ||
| 68 | |||
| 69 | unordered list | ||
| 70 | |||
| 71 | =item text | ||
| 72 | |||
| 73 | text paragraph | ||
| 74 | |||
| 75 | definition list | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head1 AUTHOR | ||
| 80 | |||
| 81 | Andrew Ford E<lt>a.ford@ford-mason.co.ukE<gt> | ||
| 82 | |||
| 83 | Andy Wardley E<lt>abw@kfs.orgE<gt> | ||
| 84 | |||
| 85 | =head1 COPYRIGHT | ||
| 86 | |||
| 87 | Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved. | ||
| 88 | |||
| 89 | Copyright (C) 2009 Andrew Ford. All Rights Reserved. | ||
| 90 | |||
| 91 | This module is free software; you can redistribute it and/or | ||
| 92 | modify it under the same terms as Perl itself. | ||
| 93 | |||
| 94 | =head1 SEE ALSO | ||
| 95 | |||
| 96 | Consult L<Pod::POM::Node> for a discussion of nodes. | ||