Commit | Line | Data |
---|---|---|
f7fd22b6 | 1 | package Moose::Meta::Method::Accessor::Native::Array::elements; |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
8b9641b8 | 6 | use Moose::Role; |
7 | ||
00bbc132 | 8 | with 'Moose::Meta::Method::Accessor::Native::Reader'; |
f7fd22b6 | 9 | |
a7821be5 | 10 | sub _maximum_arguments { 0 } |
11 | ||
f7fd22b6 | 12 | sub _return_value { |
53a4677c | 13 | my $self = shift; |
14 | my ($slot_access) = @_; | |
f7fd22b6 | 15 | |
53a4677c | 16 | return '@{ (' . $slot_access . ') }'; |
f7fd22b6 | 17 | } |
18 | ||
8b9641b8 | 19 | no Moose::Role; |
20 | ||
f7fd22b6 | 21 | 1; |