| 1 | package Forest::Tree::Indexer; | ||
| 2 | 4 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 4 | our $VERSION = '0.10'; | |
| 5 | 4 | our $AUTHORITY = 'cpan:STEVAN'; | |
| 6 | |||
| 7 | 4 | has 'tree' => ( | |
| 8 | is => 'rw', | ||
| 9 | isa => 'Forest::Tree::Pure', | ||
| 10 | ); | ||
| 11 | |||
| 12 | has 'index' => ( | ||
| 13 | traits => ['Hash'], | ||
| 14 | is => 'rw', | ||
| 15 | isa => 'HashRef[Forest::Tree::Pure]', | ||
| 16 | lazy => 1, | ||
| 17 | 3 | ▶ | default => sub { {} }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 18 | 4 | handles => { | |
| 19 | get_tree_at => 'get', | ||
| 20 | has_tree_at => 'exists', | ||
| 21 | clear_index => 'clear', | ||
| 22 | get_index_keys => 'keys', | ||
| 23 | } | ||
| 24 | ); | ||
| 25 | |||
| 26 | 4 | requires 'build_index'; | |
| 27 | |||
| 28 | 3 | ▶ | sub get_root { (shift)->tree } |
|
Subroutine
get_root: called CC=1 SCAR=0.0
Pod
documented
| |||
| 29 | |||
| 30 | 4 | ▶ | no Moose::Role; 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | |||
| 32 | __END__ | ||