more cleanups
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Hash.pm
CommitLineData
44babf1f 1package Moose::Meta::Method::Accessor::Native::Hash;
2
3use strict;
4use warnings;
5
245478d5 6our $VERSION = '1.19';
44babf1f 7$VERSION = eval $VERSION;
8our $AUTHORITY = 'cpan:STEVAN';
9
8b9641b8 10use Moose::Role;
44babf1f 11
12sub _inline_check_var_is_valid_key {
53a4677c 13 my $self = shift;
14 my ($var) = @_;
44babf1f 15
53a4677c 16 return (
17 'if (!defined(' . $var . ')) {',
18 $self->_inline_throw_error(
1e2c801e 19 '"The key passed to ' . $self->delegate_to_method
53a4677c 20 . ' must be a defined value"',
21 ) . ';',
22 '}',
23 );
44babf1f 24}
25
8b9641b8 26no Moose::Role;
27
44babf1f 281;