| 1 | package Role::TinyCommons::Tree::FromStruct; | ||
| 2 | |||
| 3 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use Role::Tiny; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use Role::Tiny::With; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 3 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 8 | 3 | our $DATE = '2021-10-07'; # DATE | |
| 9 | 3 | our $DIST = 'RoleBundle-TinyCommons-Tree'; # DIST | |
| 10 | 3 | our $VERSION = '0.129'; # VERSION | |
| 11 | |||
| 12 | 3 | with 'Role::TinyCommons::Tree::NodeMethods'; | |
| 13 | |||
| 14 | 3 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=2 SCAR=6.9
| |||
| 15 | 3 | ▶ | no strict 'refs'; ## no critic: TestingAndDebugging::ProhibitNoStrict |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 3 | require Code::Includable::Tree::FromStruct; | |
| 17 | 3 | for (grep {/\A[a-z]\w+\z/} keys %Code::Includable::Tree::FromStruct::) { | |
| 18 | 3 | *{$_} = \&{"Code::Includable::Tree::FromStruct::$_"}; | |
| 19 | } | ||
| 20 | } | ||
| 21 | |||
| 22 | 3 | 1; | |
| 23 | # ABSTRACT: Role that provides methods to build tree object from data structure | ||
| 24 | |||
| 25 | __END__ | ||