Use dzil Authority plugin - remove $AUTHORITY from code
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / elements.pm
CommitLineData
f7fd22b6 1package Moose::Meta::Method::Accessor::Native::Array::elements;
2
3use strict;
4use warnings;
5
8b9641b8 6use Moose::Role;
7
8with 'Moose::Meta::Method::Accessor::Native::Reader' =>
9 { -excludes => ['_maximum_arguments'] };
f7fd22b6 10
a7821be5 11sub _maximum_arguments { 0 }
12
f7fd22b6 13sub _return_value {
53a4677c 14 my $self = shift;
15 my ($slot_access) = @_;
f7fd22b6 16
53a4677c 17 return '@{ (' . $slot_access . ') }';
f7fd22b6 18}
19
8b9641b8 20no Moose::Role;
21
f7fd22b6 221;