1 package Moose::Meta::Method::Accessor::Native::Hash::defined;
6 use Scalar::Util qw( looks_like_number );
10 with 'Moose::Meta::Method::Accessor::Native::Reader' => {
15 _inline_check_arguments
19 'Moose::Meta::Method::Accessor::Native::Hash';
21 sub _minimum_arguments { 1 }
23 sub _maximum_arguments { 1 }
25 sub _inline_check_arguments {
28 return $self->_inline_check_var_is_valid_key('$_[0]');
33 my ($slot_access) = @_;
35 return 'defined ' . $slot_access . '->{ $_[0] }';