1 package Moose::Meta::Method::Accessor::Native::Array::map;
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
12 with 'Moose::Meta::Method::Accessor::Native::Reader' => {
17 _inline_check_arguments
22 sub _minimum_arguments { 1 }
24 sub _maximum_arguments { 1 }
26 sub _inline_check_arguments {
29 return $self->_inline_throw_error(
30 q{'The argument passed to map must be a code reference'})
31 . q{if $_[0] && ( ref $_[0] || q{} ) ne 'CODE';};
36 my $slot_access = shift;
38 return "map { \$_[0]->() } \@{ $slot_access }";