57e2d31c2883d389e3538530830d0b644060dfd6
[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 $VERSION = '1.14';
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
9
10 use base 'Moose::Meta::Method::Accessor::Native::Hash::Writer';
11
12 sub _maximum_arguments { 0 }
13
14 sub _adds_members { 0 }
15
16 sub _potential_value { return '{}' }
17
18 sub _inline_optimized_set_new_value {
19     my ( $self, $inv, $new, $slot_access ) = @_;
20
21     return "$slot_access = {};";
22 }
23
24 1;