Beginning of dzilization
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Hash / clear.pm
1 package Moose::Meta::Method::Accessor::Native::Hash::clear;
2
3 use strict;
4 use warnings;
5
6 our $AUTHORITY = 'cpan:STEVAN';
7
8 use Moose::Role;
9
10 with 'Moose::Meta::Method::Accessor::Native::Hash::Writer' => {
11     -excludes => [
12         qw(
13             _maximum_arguments
14             _inline_optimized_set_new_value
15             _return_value
16             )
17     ]
18 };
19
20 sub _maximum_arguments { 0 }
21
22 sub _adds_members { 0 }
23
24 sub _potential_value { '{}' }
25
26 sub _inline_optimized_set_new_value {
27     my $self = shift;
28     my ($inv, $new, $slot_access) = @_;
29
30     return $slot_access . ' = {};';
31 }
32
33 sub _return_value { '' }
34
35 no Moose::Role;
36
37 1;