For.pm
Go to the documentation of this file.
1 #============================================================= -*-Perl-*-
2 #
3 # Pod::POM::Nodes
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: For.pm 76 2009-08-20 20:41:33Z ford $
22 #
23 #========================================================================
24 
25 package BASIS::Pod::POM::Node::For;
26 
27 use strict;
28 
29 use parent qw( BASIS::Pod::POM::Node );
30 use vars qw( %ATTRIBS $ERROR );
31 
32 %ATTRIBS = ( format => undef, text => '' );
33 
34 sub new {
35  my $class = shift;
36  my $pom = shift;
37  my $text = shift;
38  return $class->SUPER::new($pom, split(/\s+/, $text, 2));
39 }
40 
41 1;
42 
43 =head1 NAME
44 
45 Pod::POM::Node::For -
46 
47 =head1 SYNOPSIS
48 
49  use Pod::POM::Nodes;
50 
51 =head1 DESCRIPTION
52 
53 This module implements a specialization of the node class to represent C<=for> elements.
54 
55 =head1 AUTHOR
56 
57 Andrew Ford E<lt>a.ford@ford-mason.co.ukE<gt>
58 
59 Andy Wardley E<lt>abw@kfs.orgE<gt>
60 
61 =head1 COPYRIGHT
62 
63 Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved.
64 
65 Copyright (C) 2009 Andrew Ford. All Rights Reserved.
66 
67 This module is free software; you can redistribute it and/or
68 modify it under the same terms as Perl itself.
69 
70 =head1 SEE ALSO
71 
72 Consult L<Pod::POM::Node> for a discussion of nodes.