Commit | Line | Data |
---|---|---|
44babf1f | 1 | package Moose::Meta::Method::Accessor::Native::Hash::clear; |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
8b9641b8 | 6 | use Moose::Role; |
7 | ||
00bbc132 | 8 | with 'Moose::Meta::Method::Accessor::Native::Hash::Writer'; |
44babf1f | 9 | |
10 | sub _maximum_arguments { 0 } | |
11 | ||
12 | sub _adds_members { 0 } | |
13 | ||
1e2c801e | 14 | sub _potential_value { '{}' } |
44babf1f | 15 | |
a486d5ad | 16 | sub _inline_optimized_set_new_value { |
53a4677c | 17 | my $self = shift; |
18 | my ($inv, $new, $slot_access) = @_; | |
44babf1f | 19 | |
a486d5ad | 20 | return $slot_access . ' = {};'; |
44babf1f | 21 | } |
22 | ||
1e2c801e | 23 | sub _return_value { '' } |
7f5ec80d | 24 | |
8b9641b8 | 25 | no Moose::Role; |
26 | ||
44babf1f | 27 | 1; |