Over.pm
Go to the documentation of this file.
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 76 2009-08-20 20:41:33Z ford $
22 #
23 #========================================================================
24 
25 package BASIS::Pod::POM::Node::Over;
26 
27 use strict;
28 
29 use parent qw( BASIS::Pod::POM::Node );
30 use vars qw( %ATTRIBS @ACCEPT $EXPECT $ERROR );
31 
32 %ATTRIBS = ( indent => 4 );
33 @ACCEPT = qw( over item begin for text verbatim code );
34 $EXPECT = 'back';
35 
36 sub list_type {
37  my $self = shift;
38  my ($first, @rest) = $self->content;
39 
40  my $first_type = $first->type;
41  return;
42 }
43 
44 
45 1;
46 
47 =head1 NAME
48 
49 Pod::POM::Node::Over - POM '=over' node class
50 
51 =head1 SYNOPSIS
52 
53  use Pod::POM::Nodes;
54 
55 =head1 DESCRIPTION
56 
57 This class implements '=over' Pod nodes. As described by the L<perlpodspec> man page =over/=back regions are
58 used for various kinds of list-like structures (including blockquote paragraphs).
59 
60  =item 1.
61 
62 ordered list
63 
64  =item *
65 
66  text paragraph
67 
68 unordered list
69 
70  =item text
71 
72  text paragraph
73 
74 definition list
75 
76 
77 
78 =head1 AUTHOR
79 
80 Andrew Ford E<lt>a.ford@ford-mason.co.ukE<gt>
81 
82 Andy Wardley E<lt>abw@kfs.orgE<gt>
83 
84 =head1 COPYRIGHT
85 
86 Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved.
87 
88 Copyright (C) 2009 Andrew Ford. All Rights Reserved.
89 
90 This module is free software; you can redistribute it and/or
91 modify it under the same terms as Perl itself.
92 
93 =head1 SEE ALSO
94 
95 Consult L<Pod::POM::Node> for a discussion of nodes.