X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FMethod%2FAccessor%2FNative%2FNumber%2Fdiv.pm;h=cbbcba1ef4db450d8d8648d8b32ad85d7a7ceb7f;hb=00bbc132f9e1cb2b1a44aa287887cafa27a84577;hp=1b468c664d317925171c83cc1fba324aeb186ffe;hpb=1e2c801e852e22b0ab5af1efc34667710ba952de;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Accessor/Native/Number/div.pm b/lib/Moose/Meta/Method/Accessor/Native/Number/div.pm index 1b468c6..cbbcba1 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/Number/div.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/Number/div.pm @@ -3,21 +3,9 @@ package Moose::Meta::Method::Accessor::Native::Number::div; use strict; use warnings; -our $VERSION = '1.19'; -$VERSION = eval $VERSION; -our $AUTHORITY = 'cpan:STEVAN'; - use Moose::Role; -with 'Moose::Meta::Method::Accessor::Native::Writer' => { - -excludes => [ - qw( - _minimum_arguments - _maximum_arguments - _optimized_set_new_value - ) - ] - }; +with 'Moose::Meta::Method::Accessor::Native::Writer'; sub _minimum_arguments { 1 } @@ -30,11 +18,11 @@ sub _potential_value { return $slot_access . ' / $_[0]'; } -sub _optimized_set_new_value { +sub _inline_optimized_set_new_value { my $self = shift; my ($inv, $new, $slot_access) = @_; - return $slot_access . ' /= $_[0]'; + return $slot_access . ' /= $_[0];'; } no Moose::Role;