1MooseX::AttributeHelperUss:e:rTrCMaooinotts:re:iXCb:ou:ltAletedtcrtPiieborunlt:e:DHBoeaclgup(me3er)nst:a:tTiroanit::Collection::Bag(3)
2
3
4
6 MooseX::AttributeHelpers::Collection::Bag
7
9 package Stuff;
10 use Moose;
11 use MooseX::AttributeHelpers;
12
13 has 'word_histogram' => (
14 metaclass => 'Collection::Bag',
15 is => 'ro',
16 isa => 'Bag', # optional ... as is defalt
17 provides => {
18 'add' => 'add_word',
19 'get' => 'get_count_for',
20 'empty' => 'has_any_words',
21 'count' => 'num_words',
22 'delete' => 'delete_word',
23 }
24 );
25
27 This module provides a Bag attribute which provides a number of bag-
28 like operations. See MooseX::AttributeHelpers::MethodProvider::Bag for
29 more details.
30
32 meta
33 method_provider
34 has_method_provider
35 helper_type
36 process_options_for_provides
37
39 All complex software has bugs lurking in it, and this module is no
40 exception. If you find a bug please either email me, or add the bug to
41 cpan-RT.
42
44 Stevan Little <stevan@iinteractive.com>
45
47 Copyright 2007-2009 by Infinity Interactive, Inc.
48
49 <http://www.iinteractive.com>
50
51 This library is free software; you can redistribute it and/or modify it
52 under the same terms as Perl itself.
53
54
55
56perl v5.12.0 MooseX:2:0A1t0t-r0i1b-u0t1eHelpers::Trait::Collection::Bag(3)