make version match Moose
[gitmo/Moose.git] / lib / Moose / AttributeHelpers / Collection / Hash.pm
CommitLineData
e3c07b19 1
2package Moose::AttributeHelpers::Collection::Hash;
3use Moose;
4
dbd46676 5our $VERSION = '0.83';
e3c07b19 6$VERSION = eval $VERSION;
7our $AUTHORITY = 'cpan:STEVAN';
8
9extends 'Moose::Meta::Attribute';
10with 'Moose::AttributeHelpers::Trait::Collection::Hash';
11
12no Moose;
13
14# register the alias ...
15package # hide me from search.cpan.org
16 Moose::Meta::Attribute::Custom::Collection::Hash;
17sub register_implementation { 'Moose::AttributeHelpers::Collection::Hash' }
18
19
201;
21
22__END__
23
24=pod
25
26=head1 NAME
27
28Moose::AttributeHelpers::Collection::Hash
29
30=head1 SYNOPSIS
31
32 package Stuff;
33 use Moose;
34 use Moose::AttributeHelpers;
35
36 has 'options' => (
37 metaclass => 'Collection::Hash',
38 is => 'ro',
39 isa => 'HashRef[Str]',
40 default => sub { {} },
41 provides => {
42 'set' => 'set_option',
43 'get' => 'get_option',
44 'empty' => 'has_options',
45 'count' => 'num_options',
46 'delete' => 'delete_option',
47 }
48 );
49
50=head1 DESCRIPTION
51
52This module provides a Hash attribute which provides a number of
53hash-like operations. See L<Moose::AttributeHelpers::MethodProvider::Hash>
54for more details.
55
56=head1 METHODS
57
58=over 4
59
60=item B<meta>
61
62=item B<method_provider>
63
64=item B<has_method_provider>
65
66=item B<helper_type>
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
82Copyright 2007-2009 by Infinity Interactive, Inc.
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
89=cut