MooseX...::Hash(3pm)

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

πŸ’– 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. πŸ’…


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