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',
11 'Moose::Meta::Method::Accessor::Native::Hash';
13 sub _minimum_arguments { 1 }
15 sub _maximum_arguments { 1 }
17 sub _inline_check_arguments {
20 return $self->_inline_check_var_is_valid_key('$_[0]');
25 my ($slot_access) = @_;
27 return 'defined ' . $slot_access . '->{ $_[0] }';