1 package Moose::Meta::Method::Accessor::Native::Array::accessor;
8 with 'Moose::Meta::Method::Accessor::Native::Array::set',
9 'Moose::Meta::Method::Accessor::Native::Array::get';
11 sub _inline_process_arguments {
13 $self->Moose::Meta::Method::Accessor::Native::Array::get::_inline_process_arguments(@_);
16 sub _inline_check_arguments {
18 $self->Moose::Meta::Method::Accessor::Native::Array::get::_inline_check_arguments(@_);
23 $self->Moose::Meta::Method::Accessor::Native::Array::get::_return_value(@_);
26 sub _generate_method {
30 my $slot_access = $self->_get_value($inv);
34 'my ' . $inv . ' = shift;',
35 $self->_inline_curried_arguments,
36 $self->_inline_check_lazy($inv, '$type_constraint', '$type_coercion', '$type_message'),
39 $self->_inline_check_var_is_valid_index('$_[0]'),
40 $self->Moose::Meta::Method::Accessor::Native::Array::get::_inline_return_value($slot_access),
44 $self->_inline_writer_core($inv, $slot_access),
50 sub _minimum_arguments { 1 }
51 sub _maximum_arguments { 2 }