MooseX...n::Bag(3pm)
π MooseX::AttributeHelpers::Trait::Collection::Bag π
okay bestie, welcome to the manual page for MooseX::AttributeHelpers::Trait::Collection::Bag β that's the trait, and this whole thing lives in the User Contributed Perl Documentation section, so you know it's community-crafted. π«Ά
β¨ NAME β¨
MooseX::AttributeHelpers::Trait::Collection::Bag β it's giving... a Bag attribute. that's the whole vibe. π
πΈ VERSION πΈ
version 0.25 β yeah she's been around a minute, and she still slays. π
π¦ SYNOPSIS π¦
like, here's how you'd actually use her:
package Stuff;
use Moose;
use MooseX::AttributeHelpers;
has 'word_histogram' => (
metaclass => 'Collection::Bag',
is => 'ro',
isa => 'Bag', # optional ... as is defalt
provides => {
'add' => 'add_word',
'get' => 'get_count_for',
'empty' => 'has_any_words',
'count' => 'num_words',
'delete' => 'delete_word',
}
);
no cap, that provides block is where the magic happens β you're basically handing out nicknames to the generated methods. β¨
π DESCRIPTION π
This module provides a Bag attribute which provides a number of bag-like operations. See MooseX::AttributeHelpers::MethodProvider::Bag for more details.
translation: it's a bag, it does bag things, and if you want the full tea on which bag things, go read MooseX::AttributeHelpers::MethodProvider::Bag. π₯
π METHODS π
here's the lineup, bestie:
metamethod_providerhas_method_providerhelper_typeprocess_options_for_provides
π«Ά SUPPORT π«Ά
got beef with a bug? same. you can submit through the RT bug tracker: <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-AttributeHelpers> β or if email is more your thing, hit up bug-MooseX-AttributeHelpers@rt.cpan.org <mailto:bug-MooseX-AttributeHelpers@rt.cpan.org>. π
There is also a mailing list available for users of this distribution, at <http://lists.perl.org/list/moose.html> β yes, a whole mailing list, very old-school iconic. π¬
There is also an irc channel available for users of this distribution, at #moose on irc.perl.org <irc://irc.perl.org/#moose>. hop in, the moose girlies are waiting. π§
β AUTHOR β
Stevan Little <stevan@iinteractive.com> β the icon, the moment, the legend. π
π 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.
fr fr, free software, do what you want within the Perl 5 terms, no drama. π
and that's the whole page, babe β written for perl v5.34.0 and stamped 2022-06-15. go forth and build your bags. πβ¨π
π¦ 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