Bump version to 1.16
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Hash / kv.pm
index ccbf919..06ad6fa 100644 (file)
@@ -5,13 +5,14 @@ use warnings;
 
 use Scalar::Util qw( looks_like_number );
 
-our $VERSION = '1.14';
+our $VERSION = '1.16';
 $VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
-use base 'Moose::Meta::Method::Accessor::Native::Reader';
+use Moose::Role;
 
-sub _minimum_arguments { 0 }
+with 'Moose::Meta::Method::Accessor::Native::Reader' =>
+    { -excludes => ['_maximum_arguments'] };
 
 sub _maximum_arguments { 0 }
 
@@ -22,5 +23,6 @@ sub _return_value {
     return "map { [ \$_, ${slot_access}->{\$_} ] } keys \%{ $slot_access }";
 }
 
+no Moose::Role;
 
 1;