Mirko Westermeier > Contenticious-0.331 > Contenticious::Content::Node::Directory

Download:
Contenticious-0.331.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: Contenticious-0.333

NAME ^

Contenticious::Content::Node::Directory - a directory in a Contenticious tree

SYNOPSIS ^

    use Contenticious::Content::Node::Directory;
    my $dir = Contenticious::Content::Node::Directory->new(
        filename => 'foo'
    );
    my $first_child = $dir->children->[0];

DESCRIPTION ^

Directory nodes represent directories in a Contenticious::Content content tree.

ATTRIBUTES ^

Contenticious::Content::Node::Directory inherits all Contenticious::Content::Node attributes and implements the following new ones:

children

An array ref of child elements in this content tree.

METHODS ^

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.

SEE ALSO ^

Contenticious::Content::Node, Contenticious::Content::Node::File, Contenticious::Content, Contenticious

syntax highlighting: