MooseX...::Hash(3pm)
π 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:
metamethod_providerhas_method_providerhelper_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 π
π COPYRIGHT AND LICENSE π
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
- debian bookworm: libmoosex-attributehelpers-perl 0.25-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-attributehelpers-perl 0.25-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-attributehelpers-perl 0.25-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-attributehelpers-perl 0.25-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-attributehelpers-perl 0.25-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms