stop using excludes within moose, since it's no longer necessary
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / elements.pm
index f8f35e5..c8f4964 100644 (file)
@@ -3,19 +3,19 @@ package Moose::Meta::Method::Accessor::Native::Array::elements;
 use strict;
 use warnings;
 
-our $VERSION = '1.14';
-$VERSION = eval $VERSION;
-our $AUTHORITY = 'cpan:STEVAN';
+use Moose::Role;
 
-use base 'Moose::Meta::Method::Accessor::Native::Reader';
+with 'Moose::Meta::Method::Accessor::Native::Reader';
 
 sub _maximum_arguments { 0 }
 
 sub _return_value {
-    my $self        = shift;
-    my $slot_access = shift;
+    my $self = shift;
+    my ($slot_access) = @_;
 
-    return "\@{ $slot_access }";
+    return '@{ (' . $slot_access . ') }';
 }
 
+no Moose::Role;
+
 1;