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 _inline_process_arguments {
13 return 'my $func = shift;';
16 sub _inline_check_arguments {
18 q{die 'Must provide a code reference as an argument' unless ( ref $func || q{} ) eq 'CODE';};
23 my $slot_access = shift;
25 return "grep { \$func->() } \@{ $slot_access }";