X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FMethod%2FAccessor%2FNative%2FString%2Fclear.pm;h=1889633eec8588cf730a2a63c0397a675bfefc2b;hb=55c22540a16ae9b8989e385af93e838570206d95;hp=403f8bc5b2986730b31dfb7821d53827b85714a9;hpb=a6ae743834ab40ad7ce85880c85cf2c748d423be;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Accessor/Native/String/clear.pm b/lib/Moose/Meta/Method/Accessor/Native/String/clear.pm index 403f8bc..1889633 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/String/clear.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/String/clear.pm @@ -3,13 +3,21 @@ package Moose::Meta::Method::Accessor::Native::String::clear; use strict; use warnings; -our $VERSION = '1.13'; +our $VERSION = '1.15'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; -use base 'Moose::Meta::Method::Accessor::Native::Writer'; +use Moose::Role; + +with 'Moose::Meta::Method::Accessor::Native::Writer' => { + -excludes => [ + qw( + _maximum_arguments + _inline_optimized_set_new_value + ) + ] +}; -sub _minimum_arguments { 0 } sub _maximum_arguments { 0 } sub _potential_value { @@ -21,7 +29,9 @@ sub _potential_value { sub _inline_optimized_set_new_value { my ( $self, $inv, $new, $slot_access ) = @_; - return "$slot_access = q{};"; + return "$slot_access = q{}"; } +no Moose::Role; + 1;