BASIS  r3148
Code.pm
Go to the documentation of this file.
00001 #============================================================= -*-Perl-*-
00002 #
00003 # Pod::POM::Node::Code
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: Code.pm 76 2009-08-20 20:41:33Z ford $
00022 #
00023 #========================================================================
00024 
00025 package BASIS::Pod::POM::Node::Code;
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_code($self->{ text });
00038 }
00039 
00040 1;
00041 
00042 =head1 NAME
00043 
00044 Pod::POM::Node::Code -
00045 
00046 =head1 SYNOPSIS
00047 
00048 =head1 DESCRIPTION
00049 
00050 This module implements a specialization of the node class to represent code elements.
00051 
00052 =head1 AUTHOR
00053 
00054 Andrew Ford E<lt>a.ford@ford-mason.co.ukE<gt>
00055 
00056 Andy Wardley E<lt>abw@kfs.orgE<gt>
00057 
00058 =head1 COPYRIGHT
00059 
00060 Copyright (C) 2000, 2001 Andy Wardley.  All Rights Reserved.
00061 
00062 Copyright (C) 2009 Andrew Ford.  All Rights Reserved.
00063 
00064 This module is free software; you can redistribute it and/or
00065 modify it under the same terms as Perl itself.
00066 
00067 =head1 SEE ALSO
00068 
00069 Consult L<Pod::POM::Node> for a discussion of nodes.