NAME
MouseX::AttributeHelpers::Collection::ImmutableHash
SYNOPSIS
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',
},
);
DESCRIPTION
This module provides a immutable HashRef attribute which provides a number of hash-line operations.
PROVIDERS
count
empty
exists
get
keys
values
kv
METHODS
method_constructors
helper_type
AUTHOR
NAKAGAWA Masaki <masaki@cpan.org>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.