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