MooseX...::Hash(3pm)
π NAME π
MooseX::AttributeHelpers::MethodProvider::Hash β bestie, it's the method generator for MooseX::AttributeHelpers::Collection::Hash. That's the whole vibe. π
β¨ VERSION β¨
version 0.25 β she's a lil vintage, and honestly? iconic for it. π
π¦ DESCRIPTION π¦
okay so. This is a role that hands you the method generators for MooseX::AttributeHelpers::Collection::Hash. Think of it as the plug-in that makes your hash attributes actually do stuff instead of just sitting there looking pretty. π
And plot twist β this role is composed from the MooseX::AttributeHelpers::Collection::ImmutableHash role. So she's literally built on top of her sister. Family business. π
πΈ METHODS πΈ
metaβ yeah that's it, that's the method. short king. π«Ά
π PROVIDED METHODS π
okay bestie, here's the whole menu, no skips, no shortcuts:
countβ returns the number of elements in the hash. she's counting. πdeleteβ removes the element with the given key. bye girl πdefinedβ returns true if the value of a given key is defined. not everything is, and that's valid. πemptyβ if the list is populated, returns true. otherwise, returns false. (yes that's literally what the manpage says, I'm not fixing it, I'm just delivering it π )clearβ unsets the hash entirely. nuked. gone. periodt. π₯existsβ returns true if the given key is present in the hash. presence check, main character energy. βgetβ returns an element of the hash by its key. just grab it. πkeysβ returns the list of keys in the hash. all of them. the whole roster. πsetβ sets the element in the hash at the given key to the given value. assign her. πvaluesβ returns the list of values in the hash. the content, not the labels. πkvβ returns the key, value pairs in the hash. both at once, obsessed. π₯accessorβ if passed one argument, returns the value of the requested key. if passed two arguments, sets the value of the requested key. she does both depending on your energy. β¨
π«Ά SUPPORT π«Ά
Got bugs? Don't suffer in silence, bestie. Bugs may be submitted through the RT bug tracker at <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-AttributeHelpers>, or you can email bug-MooseX-AttributeHelpers@rt.cpan.org (mailto link: <mailto:bug-MooseX-AttributeHelpers@rt.cpan.org>). π
There's also a mailing list available for users of this distribution, at <http://lists.perl.org/list/moose.html>. join the chat, it's giving community. π
And there's an irc channel available for users of this distribution too β #moose on irc.perl.org, aka <irc://irc.perl.org/#moose>. come thru. π¦
π AUTHOR π
Stevan Little <stevan@iinteractive.com> β the originator. we love her. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2007 by Stevan Little and Infinity Interactive, Inc.
This is 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 off. π«Ά
fr fr, that's the whole page. perl v5.34.0, dated 2022-06-15, generated from MooseX...::Hash(3pm) in the User Contributed Perl Documentation. no cap, go write some hashes bestie πβ¨πΈ
π¦ 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