Commit | Line | Data |
---|---|---|
664e417b | 1 | package Moose::Meta::Method::Accessor::Native::Bool::not; |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
664e417b | 6 | our $AUTHORITY = 'cpan:STEVAN'; |
7 | ||
8b9641b8 | 8 | use Moose::Role; |
9 | ||
10 | with 'Moose::Meta::Method::Accessor::Native::Reader' => | |
11 | { -excludes => ['_maximum_arguments'] }; | |
664e417b | 12 | |
664e417b | 13 | sub _maximum_arguments { 0 } |
14 | ||
15 | sub _return_value { | |
53a4677c | 16 | my $self = shift; |
17 | my ($slot_access) = @_; | |
664e417b | 18 | |
53a4677c | 19 | return '!' . $slot_access; |
664e417b | 20 | } |
21 | ||
22 | 1; |