1 package Moose::Meta::Method::Accessor::Native::Hash::elements;
6 use Scalar::Util qw( looks_like_number );
10 with 'Moose::Meta::Method::Accessor::Native::Reader' =>
11 { -excludes => ['_maximum_arguments'] };
13 sub _maximum_arguments { 0 }
17 my ($slot_access) = @_;
19 return 'map { $_, ' . $slot_access . '->{$_} } '
20 . 'keys %{ (' . $slot_access . ') }';