bump version to 1.15
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / push.pm
CommitLineData
f7fd22b6 1package Moose::Meta::Method::Accessor::Native::Array::push;
2
3use strict;
4use warnings;
5
efa728b4 6our $VERSION = '1.15';
f7fd22b6 7$VERSION = eval $VERSION;
8our $AUTHORITY = 'cpan:STEVAN';
9
8b9641b8 10use Moose::Role;
11
12with 'Moose::Meta::Method::Accessor::Native::Array::Writer' =>
13 { -excludes => ['_inline_optimized_set_new_value'] };
f7fd22b6 14
a7821be5 15sub _adds_members { 1 }
f7fd22b6 16
a7821be5 17sub _potential_value {
18 my ( $self, $slot_access ) = @_;
f7fd22b6 19
e32b7489 20 return "[ \@{ $slot_access }, \@_ ]";
21}
22
23sub _inline_optimized_set_new_value {
24 my ( $self, $inv, $new, $slot_access ) = @_;
25
584540d9 26 return "push \@{ $slot_access }, \@_";
f7fd22b6 27}
28
8b9641b8 29no Moose::Role;
30
f7fd22b6 311;