has '_comments' => (
traits => ['Array'],
- is => 'rw',
isa => ArrayRef,
handles => {
+ _comments => 'elements',
add_comment => 'push',
remove_last_comment => 'pop',
},
default => sub { [] },
- auto_deref => 1,
);
has '_options' => (
traits => ['Array'],
- is => 'rw',
isa => ArrayRef,
handles => {
+ _options => 'elements',
add_option => 'push',
remove_last_option => 'pop',
},
default => sub { [] },
- auto_deref => 1,
);
has '_extra' => (
add_extra => 'set',
},
default => sub { {} },
- auto_deref => 1,
);
multi method comments(Str $comment) { $self->add_comment($comment); $self->comments }