![]() |
![]()
| ![]() |
![]()
NAMEMouseX::AttributeHelpers::Collection::Array SYNOPSISpackage MyClass; use Mouse; use MouseX::AttributeHelpers; has 'options' => ( metaclass => 'Collection::Array', is => 'rw', isa => 'ArrayRef', default => sub { [] }, provides => { count => 'num_options', empty => 'has_options', push => 'add_options', pop => 'remove_last_option', }, ); DESCRIPTIONThis module provides an Array attribute which provides a number of array operations. PROVIDERSThis module also consumes the List method providers. See also MouseX::AttributeHelpers::Collection::List. pushpopunshiftshiftgetsetcleardeleteinsertspliceMETHODSmethod_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, MouseX::AttributeHelpers::Collection::List
|