stop using excludes within moose, since it's no longer necessary
[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
00bbc132 8with 'Moose::Meta::Method::Accessor::Native::Array::Writer';
a7821be5 9
10sub _maximum_arguments { 0 }
11
12sub _adds_members { 0 }
13
1e2c801e 14sub _potential_value { '[]' }
a7821be5 15
a486d5ad 16sub _inline_optimized_set_new_value {
53a4677c 17 my $self = shift;
18 my ($inv, $new, $slot_access) = @_;
e32b7489 19
a486d5ad 20 return $slot_access . ' = [];';
e32b7489 21}
22
1e2c801e 23sub _return_value { '' }
7f5ec80d 24
8b9641b8 25no Moose::Role;
26
a7821be5 271;