MooseX...::List(3pm)

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

🌸 NAME 🌸

MooseX::AttributeHelpers::Collection::List β€” it's the list attribute type, bestie πŸ’–

This page is MooseX...::List(3pm) from the User Contributed Perl Documentation, and yes we are about to make an attribute type sound iconic.


✨ VERSION ✨

version 0.25 β€” that's the one, no cap πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

okay so here's the whole vibe in code, look:

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

has 'options' => (
    metaclass => 'Collection::List',
    is        => 'ro',
    isa       => 'ArrayRef[Int]',
    default   => sub { [] },
    provides  => {
        map  => 'map_options',
        grep => 'filter_options',
    }
);

like. map and grep for your arrayref, generated for you, named whatever you want. that's the whole flex πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So this module hands you a List attribute that comes with a whole little suite of list operations built in. You don't write them, you don't import them, they just exist on your attribute like main character energy ✨

If you want the actual rundown of what operations you get and how they work, go read MooseX::AttributeHelpers::MethodProvider::List β€” that's where the details live, fr fr.


πŸ’œ METHODS πŸ’œ

  • meta β€” the meta thing, doing meta things 🧚
  • method_provider β€” the method provider, providing methods 😌
  • has_method_provider β€” checks whether there's a method provider in the building
  • helper_type β€” tells you the helper type, as one does 🌈

🫢 SUPPORT 🫢

Found a bug? It happens, it's not your fault, go tell the people:


πŸ‘‘ AUTHOR πŸ‘‘

Stevan Little <stevan@iinteractive.com> β€” the author, the legend, we love them for this 🫑


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. slay 🌈


okay bestie that's the whole page, go build something cute with your arrayrefs πŸ’…βœ¨

and that's a wrap β€” this was MooseX...::List(3pm) from perl v5.34.0, dated 2022-06-15. mwah, take care of her πŸŽ€πŸ’œ

πŸ“¦ where this page comes from