Contenticious::Content::Node::Directory - a directory in a Contenticious tree
use Contenticious::Content::Node::Directory; my $dir = Contenticious::Content::Node::Directory->new( filename => 'foo' ); my $first_child = $dir->children->[0];
Directory nodes represent directories in a Contenticious::Content content tree.
Contenticious::Content::Node::Directory inherits all Contenticious::Content::Node attributes and implements the following new ones:
An array ref of child elements in this content tree.
Contenticious::Content::Node::Directory inherits all Contenticious::Content::Node methods and implements the following new ones:
find_child
my $foo = $dir->find_child('foo');
Returns the first child object with that name.
find
my $bar_baz = $dir->find(qw(bar baz));
Returns the first descendant with the path 'bar/baz' from here.
Contenticious::Content::Node, Contenticious::Content::Node::File, Contenticious::Content, Contenticious
To install Contenticious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Contenticious
CPAN shell
perl -MCPAN -e shell install Contenticious
For more information on module installation, please visit the detailed CPAN module installation guide.