1 package Moose::Meta::Method::Accessor::Native::Hash::defined;
6 use Scalar::Util qw( looks_like_number );
8 our $VERSION = '1.9900';
9 $VERSION = eval $VERSION;
10 our $AUTHORITY = 'cpan:STEVAN';
14 with 'Moose::Meta::Method::Accessor::Native::Reader' => {
19 _inline_check_arguments
23 'Moose::Meta::Method::Accessor::Native::Hash';
25 sub _minimum_arguments { 1 }
27 sub _maximum_arguments { 1 }
29 sub _inline_check_arguments {
32 return $self->_inline_check_var_is_valid_key('$_[0]');
37 my ($slot_access) = @_;
39 return 'defined ' . $slot_access . '->{ $_[0] }';