change role-to-role application to allow method shadowing
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / shallow_clone.pm
CommitLineData
444a29de 1package Moose::Meta::Method::Accessor::Native::Array::shallow_clone;
2
3use strict;
4use warnings;
5
6use Params::Util ();
7
8use Moose::Role;
9
10with 'Moose::Meta::Method::Accessor::Native::Reader' => {
11 -excludes => [
12 qw(
13 _minimum_arguments
14 _maximum_arguments
15 )
16 ]
17};
18
19sub _minimum_arguments { 0 }
20
21sub _maximum_arguments { 0 }
22
23sub _return_value {
24 my $self = shift;
25 my ($slot_access) = @_;
26
27 return '[ @{ (' . $slot_access . ') } ]';
28}
29
30no Moose::Role;
31
321;