1 package Moose::Meta::Method::Accessor::Native::Bool::toggle;
6 our $AUTHORITY = 'cpan:STEVAN';
10 with 'Moose::Meta::Method::Accessor::Native::Writer' => {
14 _inline_optimized_set_new_value
19 sub _maximum_arguments { 0 }
21 sub _potential_value {
23 my ($slot_access) = @_;
25 return $slot_access . ' ? 0 : 1';
28 sub _inline_optimized_set_new_value {
30 my ($inv, $new, $slot_access) = @_;
32 return $slot_access . ' = ' . $slot_access . ' ? 0 : 1;';