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