error if we have a lazy attr with no default or builder
[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
245478d5 6our $VERSION = '1.19';
e7724627 7$VERSION = eval $VERSION;
8our $AUTHORITY = 'cpan:STEVAN';
9
8b9641b8 10use Moose::Role;
11
12with 'Moose::Meta::Method::Accessor::Native::Writer' => {
13 -excludes => [
14 qw(
15 _maximum_arguments
53a4677c 16 _optimized_set_new_value
8b9641b8 17 )
18 ]
19};
e7724627 20
e7724627 21sub _maximum_arguments { 0 }
22
1e2c801e 23sub _potential_value { '""' }
e7724627 24
53a4677c 25sub _optimized_set_new_value {
26 my $self = shift;
27 my ($inv, $new, $slot_access) = @_;
e7724627 28
53a4677c 29 return $slot_access . ' = ""';
e7724627 30}
31
8b9641b8 32no Moose::Role;
33
e7724627 341;