X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FMethod%2FAccessor%2FNative%2FArray%2Funiq.pm;h=9203f52f2ea89016d5b8c1ab51923b77a812e516;hb=245478d5ee6b5343e4d591be811582963e177bef;hp=5c33f3c222c0093afd636c50b46c88104bb1b7f6;hpb=126a13c8ae653ef4d35099ad3669a82554c7d388;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Accessor/Native/Array/uniq.pm b/lib/Moose/Meta/Method/Accessor/Native/Array/uniq.pm index 5c33f3c..9203f52 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/Array/uniq.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/Array/uniq.pm @@ -5,11 +5,14 @@ use warnings; use List::MoreUtils (); -our $VERSION = '1.13'; +our $VERSION = '1.19'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; -use base 'Moose::Meta::Method::Accessor::Native::Reader'; +use Moose::Role; + +with 'Moose::Meta::Method::Accessor::Native::Reader' => + { -excludes => ['_maximum_arguments'] }; sub _maximum_arguments { 0 } @@ -17,7 +20,9 @@ sub _return_value { my $self = shift; my $slot_access = shift; - return "List::MoreUtils::uniq \@{ $slot_access }"; + return "List::MoreUtils::uniq \@{ ($slot_access) }"; } +no Moose::Role; + 1;