X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FMethod%2FAccessor%2FNative%2FHash%2Fkeys.pm;h=6c16a0931e680502d45970558d932e1f48235148;hb=245478d5ee6b5343e4d591be811582963e177bef;hp=de4ed2b24fbed943ce1fde6954c0950d710520bb;hpb=44babf1f66a06b9e1a70a0f04841439e4bc71a6a;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Accessor/Native/Hash/keys.pm b/lib/Moose/Meta/Method/Accessor/Native/Hash/keys.pm index de4ed2b..6c16a09 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/Hash/keys.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/Hash/keys.pm @@ -5,13 +5,14 @@ use warnings; use Scalar::Util qw( looks_like_number ); -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; -sub _minimum_arguments { 0 } +with 'Moose::Meta::Method::Accessor::Native::Reader' => + { -excludes => ['_maximum_arguments'] }; sub _maximum_arguments { 0 } @@ -19,8 +20,9 @@ sub _return_value { my $self = shift; my $slot_access = shift; - return "keys \%{ $slot_access }"; + return "keys \%{ ($slot_access) }"; } +no Moose::Role; 1;