Refactored native trait accessors so they are done entirely in roles.
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / is_empty.pm
index df71c8c..0ec8d8c 100644 (file)
@@ -7,7 +7,12 @@ our $VERSION = '1.14';
 $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 }
 
 sub _return_value {
     my $self        = shift;
@@ -16,4 +21,6 @@ sub _return_value {
     return "\@{ $slot_access } ? 0 : 1";
 }
 
+no Moose::Role;
+
 1;