Use dzil Authority plugin - remove $AUTHORITY from code
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / clear.pm
CommitLineData
a7821be5 1package Moose::Meta::Method::Accessor::Native::Array::clear;
2
3use strict;
4use warnings;
5
8b9641b8 6use Moose::Role;
7
8with 'Moose::Meta::Method::Accessor::Native::Array::Writer' => {
9 -excludes => [
10 qw(
11 _maximum_arguments
a486d5ad 12 _inline_optimized_set_new_value
7f5ec80d 13 _return_value
8b9641b8 14 )
15 ]
16};
a7821be5 17
18sub _maximum_arguments { 0 }
19
20sub _adds_members { 0 }
21
1e2c801e 22sub _potential_value { '[]' }
a7821be5 23
a486d5ad 24sub _inline_optimized_set_new_value {
53a4677c 25 my $self = shift;
26 my ($inv, $new, $slot_access) = @_;
e32b7489 27
a486d5ad 28 return $slot_access . ' = [];';
e32b7489 29}
30
1e2c801e 31sub _return_value { '' }
7f5ec80d 32
8b9641b8 33no Moose::Role;
34
a7821be5 351;