1 #============================================================= -*-Perl-*-
3 # Pod::POM::Node::Sequence
6 # Module implementing specific nodes in a Pod::POM, subclassed from
10 # Andy Wardley <abw@kfs.org>
11 # Andrew Ford <a.ford@ford-mason.co.uk>
14 # Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved.
15 # Copyright (C) 2009 Andrew Ford. All Rights Reserved.
17 # This module is free software; you can redistribute it and/or
18 # modify it under the same terms as Perl itself.
21 # $Id: Sequence.pm 76 2009-08-20 20:41:33Z ford $
23 #========================================================================
25 package BASIS::Pod::POM::Node::Sequence;
29 use BASIS::Pod::POM::Constants qw( :all );
30 use parent qw( BASIS::Pod::POM::Node );
46 my ($class, $self) = @_;
48 return bless \$self, $class;
56 my ($self, $view) = @_;
57 my ($cmd, $method, $result);
58 $view ||= $BASIS::Pod::POM::DEFAULT_VIEW;
61 return $self unless ref $self eq 'ARRAY';
64 map { ref $_ ? $_->present($view)
65 : $view->view_seq_text($_) }
66 @{ $self->[CONTENT] });
68 if ($cmd = $self->[CMD]) {
69 my $method = $NAME{ $cmd } || $cmd;
70 $method = "view_seq_$method";
71 return $view->$method($text);
82 Pod::POM::Node::Sequence -
90 This module implements a specialization of the node class to represent sequence elements.
94 Andrew Ford E<lt>a.ford@ford-mason.co.ukE<gt>
96 Andy Wardley E<lt>abw@kfs.orgE<gt>
100 Copyright (C) 2000, 2001 Andy Wardley. All Rights Reserved.
102 Copyright (C) 2009 Andrew Ford. All Rights Reserved.
104 This module is free software; you can redistribute it and/or
105 modify it under the same terms as Perl itself.
109 Consult L<Pod::POM::Node> for a discussion of nodes.