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