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