1 package Moose::Meta::Method::Accessor::Native::Reader;
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
12 with 'Moose::Meta::Method::Accessor::Native';
14 requires '_return_value';
16 sub _generate_method {
20 my $slot_access = $self->_get_value($inv);
24 'my ' . $inv . ' = shift;',
25 $self->_inline_curried_arguments,
26 $self->_inline_reader_core($inv, $slot_access, @_),
31 sub _inline_reader_core {
33 my ($inv, $slot_access, @extra) = @_;
36 $self->_inline_check_argument_count,
37 $self->_inline_process_arguments($inv, $slot_access),
38 $self->_inline_check_arguments,
39 $self->_inline_check_lazy($inv, '$type_constraint', '$type_constraint_obj'),
40 $self->_inline_return_value($slot_access),
44 sub _inline_process_arguments { return }
46 sub _inline_check_arguments { return }