![]() |
![]()
| ![]() |
![]()
NAMEMouseX::AttributeHelpers::Collection::Bag SYNOPSISpackage MyClass; use Mouse; use MouseX::AttributeHelpers; has 'word_histogram' => ( metaclass => 'Collection::Bag', is => 'rw', isa => 'Bag', # exported default => sub { +{} }, provides => { add => 'add_word', get => 'get_count_for', empty => 'has_any_words', count => 'num_words', delete => 'delete_word', }, ); DESCRIPTIONThis module provides an Hash attribute which provides a number of hash-like operations. PROVIDERSThis module also consumes the ImmutableHash method providers. See also MouseX::AttributeHelpers::Collection::ImmutableHash. adddeleteresetMETHODSmethod_constructorshelper_typehelper_defaultAUTHORNAKAGAWA 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::ImmutableHash
|