1 package MooseX::AttributeHelpers::Collection::Bag;
3 use MooseX::AttributeHelpers::MethodProvider::Collection::Bag;
6 our $AUTHORITY = 'cpan:STEVAN';
8 extends 'MooseX::AttributeHelpers::Collection';
11 default_options => { default => sub { {} } },
12 method_provider => 'Collection::Bag',
13 shortcut => '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>
53 =head1 PROVIDED METHODS
55 The methods for this metaclass are provided by
56 L<MooseX::AttributeHelpers::MethodProvider::Collection::Bag>.
60 All complex software has bugs lurking in it, and this module is no
61 exception. If you find a bug please either email me, or add the bug
66 Stevan Little E<lt>stevan@iinteractive.comE<gt>
68 =head1 COPYRIGHT AND LICENSE
70 Copyright 2007-2008 by Infinity Interactive, Inc.
72 L<http://www.iinteractive.com>
74 This library is free software; you can redistribute it and/or modify
75 it under the same terms as Perl itself.