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

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

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

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


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