For.pm
Go to the documentation of this file.
00001 #============================================================= -*-Perl-*- 00002 # 00003 # Pod::POM::Nodes 00004 # 00005 # DESCRIPTION 00006 # Module implementing specific nodes in a Pod::POM, subclassed from 00007 # Pod::POM::Node. 00008 # 00009 # AUTHOR 00010 # Andy Wardley <abw@kfs.org> 00011 # Andrew Ford <a.ford@ford-mason.co.uk> 00012 # 00013 # COPYRIGHT 00014 # Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved. 00015 # Copyright (C) 2009 Andrew Ford. All Rights Reserved. 00016 # 00017 # This module is free software; you can redistribute it and/or 00018 # modify it under the same terms as Perl itself. 00019 # 00020 # REVISION 00021 # $Id: For.pm 76 2009-08-20 20:41:33Z ford $ 00022 # 00023 #======================================================================== 00024 00025 package BASIS::Pod::POM::Node::For; 00026 00027 use strict; 00028 00029 use parent qw( BASIS::Pod::POM::Node ); 00030 use vars qw( %ATTRIBS $ERROR ); 00031 00032 %ATTRIBS = ( format => undef, text => '' ); 00033 00034 sub new { 00035 my $class = shift; 00036 my $pom = shift; 00037 my $text = shift; 00038 return $class->SUPER::new($pom, split(/\s+/, $text, 2)); 00039 } 00040 00041 1; 00042 00043 =head1 NAME 00044 00045 Pod::POM::Node::For - 00046 00047 =head1 SYNOPSIS 00048 00049 use Pod::POM::Nodes; 00050 00051 =head1 DESCRIPTION 00052 00053 This module implements a specialization of the node class to represent C<=for> elements. 00054 00055 =head1 AUTHOR 00056 00057 Andrew Ford E<lt>a.ford@ford-mason.co.ukE<gt> 00058 00059 Andy Wardley E<lt>abw@kfs.orgE<gt> 00060 00061 =head1 COPYRIGHT 00062 00063 Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved. 00064 00065 Copyright (C) 2009 Andrew Ford. All Rights Reserved. 00066 00067 This module is free software; you can redistribute it and/or 00068 modify it under the same terms as Perl itself. 00069 00070 =head1 SEE ALSO 00071 00072 Consult L<Pod::POM::Node> for a discussion of nodes.