MouseX::AttributeHelpers::Collection::Hash - MouseX::AttributeHelpers::Collection::Hash documentation


MouseX-AttributeHelpers documentation  | view source Contained in the MouseX-AttributeHelpers distribution.

Index


NAME

Top

MouseX::AttributeHelpers::Collection::Hash

SYNOPSIS

Top

    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',
        },
    );

DESCRIPTION

Top

This module provides an Hash attribute which provides a number of hash-like operations.

PROVIDERS

Top

This module also consumes the ImmutableHash method providers. See also MouseX::AttributeHelpers::Collection::ImmutableHash.

set

clear

delete

METHODS

Top

method_constructors

helper_type

AUTHOR

Top

NAKAGAWA Masaki <masaki@cpan.org>

LICENSE

Top

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Top

MouseX::AttributeHelpers, MouseX::AttributeHelpers::Base, MouseX::AttributeHelpers::Collection::ImmutableHash


MouseX-AttributeHelpers documentation  | view source Contained in the MouseX-AttributeHelpers distribution.