Beginning of dzilization
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Bool / unset.pm
1 package Moose::Meta::Method::Accessor::Native::Bool::unset;
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 { 0 }
22
23 sub _inline_optimized_set_new_value {
24     my $self = shift;
25     my ($inv, $new, $slot_access) = @_;
26
27     return $slot_access . ' = 0;';
28 }
29
30 no Moose::Role;
31
32 1;