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