6f41195b5f4e5b39b134ac8ca66211ddb8f8735a
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Bool / set.pm
1 package Moose::Meta::Method::Accessor::Native::Bool::set;
2
3 use strict;
4 use warnings;
5
6 our $AUTHORITY = 'cpan:STEVAN';
7
8 use Moose::Role;
9
10 with 'Moose::Meta::Method::Accessor::Native::Writer' => {
11     -excludes => [
12         qw(
13             _maximum_arguments
14             _inline_optimized_set_new_value
15             )
16     ]
17     };
18
19 sub _maximum_arguments { 0 }
20
21 sub _potential_value { 1 }
22
23 sub _inline_optimized_set_new_value {
24     my $self = shift;
25     my ($inv, $new, $slot_access) = @_;
26
27     return $slot_access . ' = 1;';
28 }
29
30 no Moose::Role;
31
32 1;