MooseX...::Array(3pm)

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

πŸ’– MooseX::AttributeHelpers::Collection::Array β€” bestie edition πŸ’–

okay so this is a page from the User Contributed Perl Documentation, manual section 3pm (that's the "perl modules" shelf, iykyk). The header up top literally just says MooseX...::Array(3pm) because manpages love to truncate things dramatically, but the actual full name is right here:

MooseX::AttributeHelpers::Collection::Array β€” array attribute type πŸ“


✨ VERSION ✨

version 0.25 πŸŽ€


🌈 SYNOPSIS 🌈

no cap, here's the whole vibe:

package Stuff;
use Moose;
use MooseX::AttributeHelpers;

has 'options' => (
    metaclass => 'Collection::Array',
    is        => 'ro',
    isa       => 'ArrayRef[Int]',
    default   => sub { [] },
    provides  => {
        'push' => 'add_options',
        'pop'  => 'remove_last_option',
    }
);

πŸ¦‹ DESCRIPTION πŸ¦‹

This module hands you an Array attribute that comes with a whole little squad of array operations attached. Like, it's giving "attribute but make it do tricks." πŸ’…

If you want the full tea on all the operations it can provide, go read MooseX::AttributeHelpers::MethodProvider::Array β€” that's where the details live.


πŸ‘‘ METHODS πŸ‘‘

  • meta β€” the meta thing. yes bestie, it's there.
  • method_provider β€” the method provider, obviously.
  • has_method_provider β€” checks whether there's a method provider. iconic of it.
  • helper_type β€” the helper type. slay.

πŸ’œ SUPPORT πŸ’œ

Found a bug? 😭 First of all, same. Second of all, you can submit it 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

There's also a mailing list for users of this distribution, at: <http://lists.perl.org/list/moose.html>

And there's an irc channel for users of this distribution too β€” #moose on irc.perl.org <irc://irc.perl.org/#moose>. come hang out, the group chat is right there 🫢


🌸 AUTHOR 🌸

Stevan Little <stevan@iinteractive.com>


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 as in do whatever the Perl 5 license says you can do. ⭐


okay that's the whole page, we ate and left no crumbs πŸ’… this was MooseX...::Array(3pm) (perl v5.34.0, dated 2022-06-15), signed off with love from your favorite manpage bestie. mwah 🧚✨

πŸ“¦ where this page comes from