2 package MooseX::AttributeHelpers::Collection::Bag;
6 our $AUTHORITY = 'cpan:STEVAN';
8 extends 'Moose::Meta::Attribute';
9 with 'MooseX::AttributeHelpers::Trait::Collection::Bag';
13 # register the alias ...
14 package # hide me from search.cpan.org
15 Moose::Meta::Attribute::Custom::Collection::Bag;
16 sub register_implementation { 'MooseX::AttributeHelpers::Collection::Bag' }
26 MooseX::AttributeHelpers::Collection::Bag
32 use MooseX::AttributeHelpers;
34 has 'word_histogram' => (
35 metaclass => 'Collection::Bag',
37 isa => 'Bag', # optional ... as is defalt
40 'get' => 'get_count_for',
41 'empty' => 'has_any_words',
42 'count' => 'num_words',
43 'delete' => 'delete_word',
49 This module provides a Bag attribute which provides a number of
50 bag-like operations. See L<MooseX::AttributeHelpers::MethodProvider::Bag>
59 =item B<method_provider>
61 =item B<has_method_provider>
65 =item B<process_options_for_provides>
71 All complex software has bugs lurking in it, and this module is no
72 exception. If you find a bug please either email me, or add the bug
77 Stevan Little E<lt>stevan@iinteractive.comE<gt>
79 =head1 COPYRIGHT AND LICENSE
81 Copyright 2007-2008 by Infinity Interactive, Inc.
83 L<http://www.iinteractive.com>
85 This library is free software; you can redistribute it and/or modify
86 it under the same terms as Perl itself.