Commit | Line | Data |
44babf1f |
1 | package Moose::Meta::Method::Accessor::Native::Hash::clear; |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
10bd99ec |
6 | our $VERSION = '1.14'; |
44babf1f |
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 | |
584540d9 |
21 | return "$slot_access = {}"; |
44babf1f |
22 | } |
23 | |
24 | 1; |