Verbatim.pm
Go to the documentation of this file.
00001 #============================================================= -*-Perl-*- 00002 # 00003 # Pod::POM::Node::Verbatim 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: Verbatim.pm 76 2009-08-20 20:41:33Z ford $ 00022 # 00023 #======================================================================== 00024 00025 package BASIS::Pod::POM::Node::Verbatim; 00026 00027 use strict; 00028 00029 use parent qw( BASIS::Pod::POM::Node ); 00030 use vars qw( %ATTRIBS $ERROR ); 00031 00032 %ATTRIBS = ( text => '' ); 00033 00034 sub present { 00035 my ($self, $view) = @_; 00036 $view ||= $BASIS::Pod::POM::DEFAULT_VIEW; 00037 return $view->view_verbatim($self->{ text }); 00038 } 00039 00040 1; 00041 00042 =head1 NAME 00043 00044 Pod::POM::Node::Verbatim - 00045 00046 =head1 SYNOPSIS 00047 00048 use Pod::POM::Nodes; 00049 00050 =head1 DESCRIPTION 00051 00052 This module implements a specialization of the node class to represent verbatim elements. 00053 00054 =head1 AUTHOR 00055 00056 Andrew Ford E<lt>a.ford@ford-mason.co.ukE<gt> 00057 00058 Andy Wardley E<lt>abw@kfs.orgE<gt> 00059 00060 =head1 COPYRIGHT 00061 00062 Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved. 00063 00064 Copyright (C) 2009 Andrew Ford. All Rights Reserved. 00065 00066 This module is free software; you can redistribute it and/or 00067 modify it under the same terms as Perl itself. 00068 00069 =head1 SEE ALSO 00070 00071 Consult L<Pod::POM::Node> for a discussion of nodes.