Beginning of dzilization
[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
f7fd22b6 6our $AUTHORITY = 'cpan:STEVAN';
7
8b9641b8 8use Moose::Role;
9
10with 'Moose::Meta::Method::Accessor::Native::Reader' =>
11 { -excludes => ['_maximum_arguments'] };
f7fd22b6 12
a7821be5 13sub _maximum_arguments { 0 }
14
f7fd22b6 15sub _return_value {
53a4677c 16 my $self = shift;
17 my ($slot_access) = @_;
f7fd22b6 18
53a4677c 19 return '@{ (' . $slot_access . ') }';
f7fd22b6 20}
21
8b9641b8 22no Moose::Role;
23
f7fd22b6 241;