use Class::MOP::MiniTrait;
-our $VERSION = '1.17';
-$VERSION = eval $VERSION;
-our $AUTHORITY = 'cpan:STEVAN';
-
use Moose::Role;
-with 'Moose::Meta::Method::Accessor::Native::Reader' => {
- -excludes => [
- qw(
- _minimum_arguments
- _maximum_arguments
- _inline_check_arguments
- )
- ],
- },
- 'Moose::Meta::Method::Accessor::Native::Array';
+with 'Moose::Meta::Method::Accessor::Native::Reader',
+ 'Moose::Meta::Method::Accessor::Native::Array';
sub _minimum_arguments { 1 }
}
sub _return_value {
- my $self = shift;
- my $slot_access = shift;
+ my $self = shift;
+ my ($slot_access) = @_;
- return "${slot_access}->[ \$_[0] ]";
+ return $slot_access . '->[ $_[0] ]';
}
1;