1 package Moose::Meta::Method::Accessor::Native::Array::grep;
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
10 use base 'Moose::Meta::Method::Accessor::Native::Array::Reader';
12 sub _minimum_arguments { 1 }
14 sub _maximum_arguments { 1 }
16 sub _inline_check_arguments {
18 q{die 'Must provide a code reference as an argument' unless ( ref $_[0] || q{} ) eq 'CODE';};
23 my $slot_access = shift;
25 return "grep { \$_[0]->() } \@{ $slot_access }";