X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FMethod%2FAccessor%2FNative%2FString%2Fprepend.pm;h=50d530d36a31967aee1e817c41e34d40ce5b6407;hb=5394a1c721689ae6c3168a22dd92a0499e8d9744;hp=ab64feaad454bcf2d366b93c068abbf4076a8d3a;hpb=10bd99ecf3f1706d4452fa57e3f08a63b9f92a11;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Accessor/Native/String/prepend.pm b/lib/Moose/Meta/Method/Accessor/Native/String/prepend.pm index ab64fea..50d530d 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/String/prepend.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/String/prepend.pm @@ -3,13 +3,24 @@ package Moose::Meta::Method::Accessor::Native::String::prepend; use strict; use warnings; -our $VERSION = '1.14'; +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( + _minimum_arguments + _maximum_arguments + _inline_optimized_set_new_value + ) + ] +}; sub _minimum_arguments { 1 } + sub _maximum_arguments { 1 } sub _potential_value { @@ -21,7 +32,9 @@ sub _potential_value { sub _inline_optimized_set_new_value { my ( $self, $inv, $new, $slot_access ) = @_; - return "$slot_access = \$_[0] . $slot_access;"; + return "$slot_access = \$_[0] . $slot_access"; } +no Moose::Role; + 1;