logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

MooseX::AttributeHelpers::Collection::List - list attribute type

Author

       Stevan Little <stevan@iinteractive.com>

Description

       This module provides an List attribute which provides a number of list operations. See
       MooseX::AttributeHelpers::MethodProvider::List for more details.

Methods

metamethod_providerhas_method_providerhelper_type

Name

       MooseX::AttributeHelpers::Collection::List - list attribute type

Support

       Bugs         may        be        submitted        through        the        RT        bug        tracker
       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-AttributeHelpers>                           (or
       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>.

       There is also an irc channel available for users of this  distribution,  at  "#moose"  on  "irc.perl.org"
       <irc://irc.perl.org/#moose>.

Synopsis

         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',
             }
         );

Version

       version 0.25

See Also