MooseX...on::Bag(3pm)

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

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

  • meta
  • method_provider
  • has_method_provider
  • helper_type
  • process_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. πŸ‘‘


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