2 package MooseX::AttributeHelpers::Collection::Bag;
6 $VERSION = eval $VERSION;
7 our $AUTHORITY = 'cpan:STEVAN';
9 extends 'Moose::Meta::Attribute';
10 with 'MooseX::AttributeHelpers::Trait::Collection::Bag';
14 # register the alias ...
15 package # hide me from search.cpan.org
16 Moose::Meta::Attribute::Custom::Collection::Bag;
17 sub register_implementation { 'MooseX::AttributeHelpers::Collection::Bag' }
27 MooseX::AttributeHelpers::Collection::Bag
33 use MooseX::AttributeHelpers;
35 has 'word_histogram' => (
36 metaclass => 'Collection::Bag',
38 isa => 'Bag', # optional ... as is defalt
41 'get' => 'get_count_for',
42 'empty' => 'has_any_words',
43 'count' => 'num_words',
44 'delete' => 'delete_word',
50 This module provides a Bag attribute which provides a number of
51 bag-like operations. See L<MooseX::AttributeHelpers::MethodProvider::Bag>
60 =item B<method_provider>
62 =item B<has_method_provider>
66 =item B<process_options_for_provides>
72 All complex software has bugs lurking in it, and this module is no
73 exception. If you find a bug please either email me, or add the bug
78 Stevan Little E<lt>stevan@iinteractive.comE<gt>
80 =head1 COPYRIGHT AND LICENSE
82 Copyright 2007-2008 by Infinity Interactive, Inc.
84 L<http://www.iinteractive.com>
86 This library is free software; you can redistribute it and/or modify
87 it under the same terms as Perl itself.