| 1 | 1 | ▶ | use Renard::Incunabula::Common::Setup; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | package Intertangle::Jacquard::Actor::Role::Tree::TreeDAGNode; | ||||||||||
| 3 | # ABSTRACT: Store in Tree::DAG_Node | ||||||||||
| 4 | 1 | $Intertangle::Jacquard::Actor::Role::Tree::TreeDAGNode::VERSION = '0.002'; | |||||||||
| 5 | 1 | ▶ | use Moo::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use Renard::Incunabula::Common::Types qw(InstanceOf); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use Tree::DAG_Node; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 0 | has _tree_dag_node => ( | |||||||||
| 11 | is => 'ro', | ||||||||||
| 12 | isa => InstanceOf['Tree::DAG_Node'], | ||||||||||
| 13 | 0 | ▶ | default => method() { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 14 | 0 | Tree::DAG_Node->new({ attributes => { actor => $self } }) | |||||||||
| 15 | 1 | }, | |||||||||
| 16 | ); | ||||||||||
| 17 | |||||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | method parent() { | ||||||||
|
Subroutine
parent: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 20 | 0 | my $parent_dag = $self->_tree_dag_node->mother; | |||||||||
| 21 | return defined $parent_dag | ||||||||||
| 22 | ? $parent_dag->attributes->{actor} | ||||||||||
| 23 | 0 | ▶ | : undef; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | 1 | } | |||||||||
| 25 | |||||||||||
| 26 | 1 | 1; | |||||||||
| 27 | |||||||||||
| 28 | __END__ | ||||||||||