| MouseX-AttributeHelpers documentation | view source | Contained in the MouseX-AttributeHelpers distribution. |
MouseX::AttributeHelpers::Collection::ImmutableHash
package MyClass;
use Mouse;
use MouseX::AttributeHelpers;
has 'options' => (
metaclass => 'Collection::ImmutableHash',
is => 'rw',
isa => 'HashRef',
default => sub { +{} },
provides => {
get => 'get_option',
empty => 'has_options',
keys => 'get_option_list',
},
);
This module provides a immutable HashRef attribute which provides a number of hash-line operations.
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 documentation | view source | Contained in the MouseX-AttributeHelpers distribution. |