|
NAMEMouseX::AttributeHelpers::Collection::List SYNOPSIS package MyClass;
use Mouse;
use MouseX::AttributeHelpers;
has 'options' => (
metaclass => 'Collection::List',
is => 'rw',
isa => 'ArrayRef',
default => sub { [] },
provides => {
count => 'num_options',
empty => 'has_options',
map => 'map_options',
grep => 'filter_options',
elements => 'all_options',
},
);
DESCRIPTIONThis module provides an List attribute which provides a number of list operations. PROVIDERScountemptyfindmapgrepelementsjoingetfirstlastMETHODSmethod_constructorshelper_typeAUTHORNAKAGAWA Masaki <masaki@cpan.org> LICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOMouseX::AttributeHelpers, MouseX::AttributeHelpers::Base
|