Commit | Line | Data |
---|---|---|
f7fd22b6 | 1 | package Moose::Meta::Method::Accessor::Native::Array::Writer; |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
8b9641b8 | 6 | use Moose::Role; |
a7821be5 | 7 | |
00bbc132 | 8 | with 'Moose::Meta::Method::Accessor::Native::Writer', |
9 | 'Moose::Meta::Method::Accessor::Native::Array', | |
10 | 'Moose::Meta::Method::Accessor::Native::Collection'; | |
11 | ||
12 | sub _inline_coerce_new_values { | |
13 | my $self = shift; | |
14 | $self->Moose::Meta::Method::Accessor::Native::Collection::_inline_coerce_new_values(@_); | |
15 | } | |
a7821be5 | 16 | |
1e2c801e | 17 | sub _new_members { '@_' } |
a7821be5 | 18 | |
1e2c801e | 19 | sub _copy_old_value { |
53a4677c | 20 | my $self = shift; |
21 | my ($slot_access) = @_; | |
a7821be5 | 22 | |
1d06edbf | 23 | return '[ @{(' . $slot_access . ')} ]'; |
a7821be5 | 24 | } |
25 | ||
f7fd22b6 | 26 | 1; |