make sure all modules have the same version
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Hash / exists.pm
CommitLineData
44babf1f 1package Moose::Meta::Method::Accessor::Native::Hash::exists;
2
3use strict;
4use warnings;
5
6use Scalar::Util qw( looks_like_number );
7
10bd99ec 8our $VERSION = '1.14';
44babf1f 9$VERSION = eval $VERSION;
10our $AUTHORITY = 'cpan:STEVAN';
11
12use base qw(
13 Moose::Meta::Method::Accessor::Native::Hash
14 Moose::Meta::Method::Accessor::Native::Reader
15);
16
17sub _minimum_arguments { 1 }
18
19sub _maximum_arguments { 1 }
20
21sub _inline_check_arguments {
22 my $self = shift;
23
24 return $self->_inline_check_var_is_valid_key('$_[0]');
25}
26
27sub _return_value {
28 my $self = shift;
29 my $slot_access = shift;
30
31 return "exists ${slot_access}->{ \$_[0] }";
32}
33
34
351;