package MooseX::AttributeHelpers::Collection::ImmutableHash;
use Moose;
+use MooseX::AttributeHelpers::Sugar;
our $VERSION = '0.01';
our $AUTHORITY = 'cpan:STEVAN';
-use MooseX::AttributeHelpers::MethodProvider::ImmutableHash;
-
extends 'MooseX::AttributeHelpers::Collection';
-has '+method_provider' => (
- default => 'MooseX::AttributeHelpers::MethodProvider::ImmutableHash'
+define_attribute_helper (
+ helper_type => 'HashRef',
+ method_provider =>
+ 'MooseX::AttributeHelpers::MethodProvider::ImmutableHash',
+ shortcut => 'Collection::ImmutableHash',
);
-sub helper_type { 'HashRef' }
-
no Moose;
-
-# register the alias ...
-package # hide me from search.cpan.org
- Moose::Meta::Attribute::Custom::Collection::ImmutableHash;
-sub register_implementation { 'MooseX::AttributeHelpers::Collection::ImmutableHash' }
-
+no MooseX::AttributeHelpers::Sugar;
1;
=head1 DESCRIPTION
This module provides a immutable HashRef attribute which provides a number of
-hash-line operations. See L<MooseX::AttributeHelpers::MethodProvider::ImmutableHash>
-for more details.
-
-=head1 METHODS
-
-=over 4
-
-=item B<meta>
-
-=item B<method_provider>
-
-=item B<has_method_provider>
+hash-like operations.
-=item B<helper_type>
+=head1 PROVIDED METHODS
-=back
+The methods for this metaclass are provided by
+L<MooseX::AttributeHelpers::MethodProvider::ImmutableHash>.
=head1 BUGS
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
-=cut
\ No newline at end of file
+=cut