if we aren't calling _inline_return_value, none of this is necessary
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Hash / clear.pm
CommitLineData
44babf1f 1package Moose::Meta::Method::Accessor::Native::Hash::clear;
2
3use strict;
4use warnings;
5
8b9641b8 6use Moose::Role;
7
8with 'Moose::Meta::Method::Accessor::Native::Hash::Writer' => {
9 -excludes => [
10 qw(
11 _maximum_arguments
a486d5ad 12 _inline_optimized_set_new_value
7f5ec80d 13 _return_value
8b9641b8 14 )
15 ]
16};
44babf1f 17
18sub _maximum_arguments { 0 }
19
20sub _adds_members { 0 }
21
1e2c801e 22sub _potential_value { '{}' }
44babf1f 23
a486d5ad 24sub _inline_optimized_set_new_value {
53a4677c 25 my $self = shift;
26 my ($inv, $new, $slot_access) = @_;
44babf1f 27
a486d5ad 28 return $slot_access . ' = {};';
44babf1f 29}
30
1e2c801e 31sub _return_value { '' }
7f5ec80d 32
8b9641b8 33no Moose::Role;
34
44babf1f 351;