MooseX...on::Bag(3pm)
π MooseX::AttributeHelpers::Collection::Bag π
okay bestie, so this is a page from the User Contributed Perl Documentation β it's the manual for MooseX::AttributeHelpers::Collection::Bag, and honestly? it's giving bag energy. let's get into it π
VERSION: version 0.25 β¨
β¨ SYNOPSIS β¨
like, here's the whole vibe in one go:
package Stuff;
use Moose;
use MooseX::AttributeHelpers;
has 'word_histogram' => (
metaclass => 'Collection::Bag',
is => 'ro',
isa => 'Bag', # optional ... as is default
provides => {
'add' => 'add_word',
'get' => 'get_count_for',
'empty' => 'has_any_words',
'count' => 'num_words',
'delete' => 'delete_word',
}
);
see how you just hand it a provides hash and it's like "bet, here's your methods"? iconic. π
πΈ DESCRIPTION πΈ
so this module hands you a Bag attribute, and that attribute comes with a whole little squad of bag-like operations β add stuff, count stuff, check if it's empty, delete stuff, the works. π«Ά
if you wanna know more more more, go peek at MooseX::AttributeHelpers::MethodProvider::Bag β that's where the real deets live, iykyk. π₯
π METHODS π
here's the lineup, no cap:
metamethod_providerhas_method_providerhelper_typeprocess_options_for_provides
that's the whole roster. slay. β¨
π¦ SUPPORT π¦
got a bug? first of all, relatable. π here's where to send it:
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 π
there's also a mailing list for folks using this distribution, over at http://lists.perl.org/list/moose.html π
and if you wanna just chat about it, there's an irc channel for users of this distribution at #moose on irc.perl.org β that's irc://irc.perl.org/#moose if you're fancy. π¬
π AUTHOR π
Stevan Little <stevan@iinteractive.com> β the main character of this whole thing, fr fr. π
π 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. π
and that's the whole page, bestie!! this one shipped with perl v5.34.0 and the page itself is dated 2022-06-15 β so if you were wondering when this little cutie got its glow-up, now you know. πβ¨π¦ take care, drink water, and go build something with a bag in it ππ
π¦ 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