Refactored native trait accessors so they are done entirely in roles.
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Code / execute_method.pm
index b833afc..5cd7ec2 100644 (file)
@@ -7,10 +7,9 @@ our $VERSION = '1.14';
 $VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
-use base 'Moose::Meta::Method::Accessor::Native::Reader';
+use Moose::Role;
 
-sub _minimum_arguments { 0 }
-sub _maximum_arguments { undef }
+with 'Moose::Meta::Method::Accessor::Native::Reader';
 
 sub _return_value {
     my ( $self, $slot_access ) = @_;
@@ -18,4 +17,6 @@ sub _return_value {
     return "${slot_access}->(\$self, \@_)";
 }
 
+no Moose::Role;
+
 1;