Commit | Line | Data |
---|---|---|
a7821be5 | 1 | package Moose::Meta::Method::Accessor::Native::Array::clear; |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
8b9641b8 | 6 | use Moose::Role; |
7 | ||
8 | with '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 | |
18 | sub _maximum_arguments { 0 } | |
19 | ||
20 | sub _adds_members { 0 } | |
21 | ||
1e2c801e | 22 | sub _potential_value { '[]' } |
a7821be5 | 23 | |
a486d5ad | 24 | sub _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 | 31 | sub _return_value { '' } |
7f5ec80d | 32 | |
8b9641b8 | 33 | no Moose::Role; |
34 | ||
a7821be5 | 35 | 1; |