| 1 | package Forest::Tree::Writer; | ||
| 2 | 5 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 5 | our $VERSION = '0.10'; | |
| 5 | 5 | our $AUTHORITY = 'cpan:STEVAN'; | |
| 6 | |||
| 7 | 5 | has 'tree' => ( | |
| 8 | is => 'rw', | ||
| 9 | isa => 'Forest::Tree::Pure', | ||
| 10 | required => 1, | ||
| 11 | ); | ||
| 12 | |||
| 13 | 5 | requires 'as_string'; | |
| 14 | |||
| 15 | 2 | ▶ | sub write { |
|
Subroutine
write: called CC=1 SCAR=0.0
Pod
documented
| |||
| 16 | 2 | my ($self, $fh) = @_; | |
| 17 | 2 | print $fh $self->as_string; | |
| 18 | } | ||
| 19 | |||
| 20 | 5 | ▶ | no Moose::Role; 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | |||
| 22 | __END__ | ||