1 package Moose::Meta::Method::Accessor::Native::Counter::dec;
8 with 'Moose::Meta::Method::Accessor::Native::Writer' => {
13 _inline_optimized_set_new_value
18 sub _minimum_arguments { 0 }
19 sub _maximum_arguments { 1 }
21 sub _potential_value {
23 my ($slot_access) = @_;
25 return $slot_access . ' - (defined $_[0] ? $_[0] : 1)';
28 sub _inline_optimized_set_new_value {
30 my ($inv, $new, $slot_access) = @_;
32 return $slot_access . ' -= defined $_[0] ? $_[0] : 1;';