SYNOPSIS

     use Tree::Object;
    
     my $tree = Tree::Object->new(foo => 1, bar => 2, ...);
    
     my $child1 = Tree::Object->new( ... );
     my $child2 = Tree::Object->new( ... );
    
     # connect children to parent
     $child1->parent($tree);
     $child2->parent($tree);
    
     # connect parent to children
     $tree->children($child1, $child2);

DESCRIPTION

    This is a pretty generic tree object you can use directly or as a base
    class.

    It gets its methods from Role::TinyCommons::Tree::Node and
    Role::TinyCommons::Tree::NodeMethods roles.

METHODS

    See Role::TinyCommons::Tree::Node, Role::TinyCommons::Tree::NodeMethods
    for the complete list of methods.

 CLASS->new(%attrs) => obj

    Constructor.

 $obj->parent( [ $obj ] ) => obj

    Get or set parent.

 $obj->children( [ $child, ... ] ) => list

    Get or set children.

SEE ALSO

    Role::TinyCommons::Tree::Node

    Role::TinyCommons::Tree::NodeMethods

