1 package Moose::Meta::Method::Accessor::Native::Number::add;
8 with 'Moose::Meta::Method::Accessor::Native::Writer';
10 sub _minimum_arguments { 1 }
12 sub _maximum_arguments { 1 }
14 sub _potential_value {
16 my ($slot_access) = @_;
18 return $slot_access . ' + $_[0]';
21 sub _inline_optimized_set_new_value {
23 my ($inv, $new, $slot_access) = @_;
25 return $slot_access . ' += $_[0];';