Beginning of dzilization
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / String / clear.pm
CommitLineData
e7724627 1package Moose::Meta::Method::Accessor::Native::String::clear;
2
3use strict;
4use warnings;
5
e7724627 6our $AUTHORITY = 'cpan:STEVAN';
7
8b9641b8 8use Moose::Role;
9
10with '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 19sub _maximum_arguments { 0 }
20
1e2c801e 21sub _potential_value { '""' }
e7724627 22
a486d5ad 23sub _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 30no Moose::Role;
31
e7724627 321;