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