NAKAGAWA Masaki > MouseX-AttributeHelpers-0.07 > MouseX::AttributeHelpers::Collection::ImmutableHash

Download:
MouseX-AttributeHelpers-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

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.

SEE ALSO ^

MouseX::AttributeHelpers, MouseX::AttributeHelpers::Base

syntax highlighting: