bump version to 0.22
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / Collection / Bag.pm
CommitLineData
9a976497 1
2package MooseX::AttributeHelpers::Collection::Bag;
3use Moose;
9a976497 4
3ebd23e6 5our $VERSION = '0.22';
38430345 6$VERSION = eval $VERSION;
9a976497 7our $AUTHORITY = 'cpan:STEVAN';
8
090583df 9extends 'Moose::Meta::Attribute';
10with 'MooseX::AttributeHelpers::Trait::Collection::Bag';
9a976497 11
12no Moose;
9a976497 13
14# register the alias ...
0f31cc28 15package # hide me from search.cpan.org
16 Moose::Meta::Attribute::Custom::Collection::Bag;
9a976497 17sub register_implementation { 'MooseX::AttributeHelpers::Collection::Bag' }
18
191;
20
21__END__
22
23=pod
24
25=head1 NAME
26
27MooseX::AttributeHelpers::Collection::Bag
28
29=head1 SYNOPSIS
30
31 package Stuff;
32 use Moose;
33 use MooseX::AttributeHelpers;
34
35 has 'word_histogram' => (
36 metaclass => 'Collection::Bag',
37 is => 'ro',
c678e72d 38 isa => 'Bag', # optional ... as is default
9a976497 39 provides => {
40 'add' => 'add_word',
41 'get' => 'get_count_for',
42 'empty' => 'has_any_words',
43 'count' => 'num_words',
44 'delete' => 'delete_word',
45 }
46 );
47
48=head1 DESCRIPTION
49
50This module provides a Bag attribute which provides a number of
51bag-like operations. See L<MooseX::AttributeHelpers::MethodProvider::Bag>
52for more details.
53
54=head1 METHODS
55
56=over 4
57
58=item B<meta>
59
60=item B<method_provider>
61
62=item B<has_method_provider>
63
64=item B<helper_type>
65
66=item B<process_options_for_provides>
67
68=back
69
70=head1 BUGS
71
72All complex software has bugs lurking in it, and this module is no
73exception. If you find a bug please either email me, or add the bug
74to cpan-RT.
75
76=head1 AUTHOR
77
78Stevan Little E<lt>stevan@iinteractive.comE<gt>
79
80=head1 COPYRIGHT AND LICENSE
81
9c5d164e 82Copyright 2007-2009 by Infinity Interactive, Inc.
9a976497 83
84L<http://www.iinteractive.com>
85
86This library is free software; you can redistribute it and/or modify
87it under the same terms as Perl itself.
88
cf4136b4 89=cut