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