Got inlining for hashes working.
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / Writer.pm
CommitLineData
f7fd22b6 1package Moose::Meta::Method::Accessor::Native::Array::Writer;
2
3use strict;
4use warnings;
5
44babf1f 6use Class::MOP::MiniTrait;
7
f7fd22b6 8our $VERSION = '1.13';
9$VERSION = eval $VERSION;
10our $AUTHORITY = 'cpan:STEVAN';
11
44babf1f 12use base 'Moose::Meta::Method::Accessor::Native::Writer';
a7821be5 13
44babf1f 14Class::MOP::MiniTrait::apply( __PACKAGE__,
15 'Moose::Meta::Method::Accessor::Native::Array'
16);
17Class::MOP::MiniTrait::apply( __PACKAGE__,
18 'Moose::Meta::Method::Accessor::Native::Collection'
19);
a7821be5 20
44babf1f 21sub _new_members {'@_'}
a7821be5 22
44babf1f 23sub _inline_copy_old_value {
24 my ( $self, $slot_access ) = @_;
a7821be5 25
44babf1f 26 return '[ @{' . $slot_access . '} ]';
a7821be5 27}
28
f7fd22b6 291;