change role-to-role application to allow method shadowing
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / uniq.pm
CommitLineData
910684ee 1package Moose::Meta::Method::Accessor::Native::Array::uniq;
2
3use strict;
4use warnings;
5
6use List::MoreUtils ();
7
8b9641b8 8use Moose::Role;
9
10with 'Moose::Meta::Method::Accessor::Native::Reader' =>
11 { -excludes => ['_maximum_arguments'] };
910684ee 12
a7821be5 13sub _maximum_arguments { 0 }
14
910684ee 15sub _return_value {
53a4677c 16 my $self = shift;
17 my ($slot_access) = @_;
910684ee 18
53a4677c 19 return 'List::MoreUtils::uniq @{ (' . $slot_access . ') }';
910684ee 20}
21
8b9641b8 22no Moose::Role;
23
910684ee 241;