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