MooseX...::Hash(3pm)

πŸ“¦
version 0.25 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

MooseX::AttributeHelpers::Collection::Hash β€” it's a hash attribute type, bestie πŸ“

(Also known as MooseX...::Hash if you're squinting at the man page header, which is just this whole thing living under User Contributed Perl Documentation, iykyk πŸ’…)


✨ VERSION ✨

Like, the current version is version 0.25 πŸŽ€


🌸 SYNOPSIS 🌸

Okay so here's the whole vibe, no cap:

package Stuff;
use Moose;
use MooseX::AttributeHelpers;

has 'options' => (
    metaclass => 'Collection::Hash',
    is        => 'ro',
    isa       => 'HashRef[Str]',
    default   => sub { {} },
    provides  => {
        'set'    => 'set_option',
        'get'    => 'get_option',
        'empty'  => 'has_options',
        'count'  => 'num_options',
        'delete' => 'delete_option',
    }
);

Not me casually giving my attribute a whole personality with metaclass => 'Collection::Hash' 😭 it's giving organized. πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

This module hands you a Hash attribute that comes with a bunch of hash-like operations built right in. Like, it just does stuff for you. If you want the full tea on how it all works, go read MooseX::AttributeHelpers::MethodProvider::Hash β€” that's where the details live. πŸ‘‘


πŸ’… METHODS πŸ’…

Here's the little squad, one per line, exactly as they are:

  • meta
  • method_provider
  • has_method_provider
  • helper_type

🌈 SUPPORT 🌈

Got bugs? First of all, relatable. Second of all, please submit them through the RT bug tracker at:

https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-AttributeHelpers

Or, if email is more your era, you can send them to bug-MooseX-AttributeHelpers@rt.cpan.org 🫢

There's also a mailing list for users of this distribution, and it lives at:

http://lists.perl.org/list/moose.html

And there's an IRC channel too, for the people who like to hang out and chat β€” it's #moose on irc.perl.org:

irc://irc.perl.org/#moose

Come through, the vibes are immaculate ✨


πŸ‘‘ AUTHOR πŸ‘‘

Stevan Little <stevan@iinteractive.com> β€” periodt, that's the author πŸŽ€


This software is copyright (c) 2007 by Stevan Little</> and Infinity Interactive, Inc.

It's free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. So like, go wild (respectfully) πŸ’œ


perl v5.34.0 Β· 2022-06-15 β€” and that's the whole page, bestie πŸ¦‹ mwah, go write some slay Perl πŸ’–βœ¨

πŸ“¦ where this page comes from