MouseX::AttributeHelpers::Collection::Hash
package MyClass; use Mouse; use MouseX::AttributeHelpers; has 'options' => ( metaclass => 'Collection::Hash', is => 'rw', isa => 'HashRef', default => sub { +{} }, provides => { set => 'set_option', get => 'get_option', empty => 'has_options', count => 'num_options', delete => 'delete_option', }, );
This module provides an Hash attribute which provides a number of hash-like operations.
This module also consumes the ImmutableHash method providers. See also MouseX::AttributeHelpers::Collection::ImmutableHash.
NAKAGAWA Masaki <masaki@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
MouseX::AttributeHelpers, MouseX::AttributeHelpers::Base, MouseX::AttributeHelpers::Collection::ImmutableHash
To install MouseX::AttributeHelpers, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MouseX::AttributeHelpers
CPAN shell
perl -MCPAN -e shell install MouseX::AttributeHelpers
For more information on module installation, please visit the detailed CPAN module installation guide.